summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21ethtool: Add --version optionBen Hutchings2-0/+11
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-21ethtool: Indent the no-options usage line consistently with the othersBen Hutchings1-1/+2
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-21ethtool: Allow for long options with no short option and without a device nameBen Hutchings1-9/+14
Change loop conditions to check for a long option string. Generalise check for whether option requires a device name. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-21ethtool: Report an error if given an unrecognised optionBen Hutchings1-2/+3
Previously we would print full usage information and return 0. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-21ethtool: Split show_usage() into two functionsBen Hutchings1-71/+73
show_usage(0) and show_usage(1) now do unrelated things; split it into show_usage() and exit_bad_args(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-21Add macro for displaying [value N] formatting to manpageAlexander Duyck1-64/+38
This change adds a macro for displaying optional values that take a numeric value to the manpage. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-02-18ethtool: Don't silently ignore speed/duplex when autoneg is onBen Hutchings1-14/+31
When autonegotiation is enabled, drivers must determine link speed and duplex through the autonegotiation process and will generally ignore the speed and duplex specified in struct ethtool_cmd. Currently, if the user specifies autoneg on but does not specify the advertising mask then: - If the user specifies a recognised combination of speed and duplex, we set the advertising mask to the flag for that mode. (Currently only one mode is recognised per combination of speed and duplex.) - Otherwise, we advertise all recognised and supported modes. But we should also set the advertising mask if autoneg is *already* on. Also, we should be able to limit the advertised modes separately by speed and duplex. For now, we just warn if we fail to do that. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Fix capitalisationBen Hutchings1-8/+8
Write 'Ethernet' and 'PHY' thus. Use the proper macro for the trademark symbol. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Reword synopses for consistency and styleBen Hutchings1-3/+3
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Generalise references to network devices, not EthernetBen Hutchings1-19/+20
Most operations are generically applicable to devices using other link-layer protocols. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Fix obvious spelling errorsBen Hutchings1-2/+2
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Substitute version at configure timeBen Hutchings2-2/+2
Rename ethtool.8 to ethtool.8.in and let autoconf set the version. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool.8: Update date, version, web site referenceBen Hutchings1-4/+41
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-10ethtool: Fix spelling and spacing in online helpBen Hutchings1-2/+2
Kelly Anderson <kelly@silka.with-linux.com> pointed out that the help for --show-nfc was missing a space between two words. I checked the rest of the help text with aspell and found one other error. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2011-01-05Release version 2.6.37.Ben Hutchings2-1/+6
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-12-15ethtool: Remove suggested change of no-args behaviour from the TODO listBen Hutchings1-1/+1
ethtool can show information about many more settings than mii-tool. It would be useful to have the option to show certain settings for all interfaces, but this should not be restricted to the basic settings. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-12-15ethtool: Remove manual page from TODO listBen Hutchings1-1/+0
The manual page provides a pretty good explanation of all options now. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-12-15ethtool: Remove MII ioctls from TODO listBen Hutchings1-2/+0
Ethernet drivers generally support the ethtool API now, and the mii, mdio and phy libraries make it easy to do so using generic MDIO registers. I see no point in adding a fallback here. Further, using SIOCDEVPRIVATE with arbitrary drivers is a really bad idea. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-23ethtool: Work around old <linux/types.h> without big-endian typesBen Hutchings2-0/+13
Add an autoconf test for whether __be16 and __be32 are defined. If not, define them in ethtool-util.h. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16Release version 2.6.36; update maintainerBen Hutchings2-1/+8
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Add support for vlan accleration.Jesse Gross2-3/+26
The kernel now has support for enabling and disabling vlan acceleration, similar to other forms of offloading. This adds the complementary userspace support. Signed-off-by: Jesse Gross <jesse@nicira.com> [bwh: Fix references to 'off_flags_unwanted', renamed to 'off_flags_mask'] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: add get permanent address optionStephen Hemminger2-1/+43
Add command level support for showing permanent address. The ioctl has been around for a long time but there was no option to display it. Note: MAX_ADDR_LEN is defined in netdevice.h but including netdevice.h leads to multiple definition errors with if.h. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> [bwh: Fix use of '|' in place of '||', as noted by Joe Perches] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: add stmmac supportGiuseppe CAVALLARO4-1/+73
Add the stmmac support into the ethtool to dump both the Mac Core and Dma registers. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Add my authorship and Solarflare copyright noticeBen Hutchings2-0/+3
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Update sfc register dumpBen Hutchings1-11/+14
Add length checks to allow for extensions to the register dump without changing the version number. Show the RX IP filter table if present. Fix address field definitions for the MAC filter tables. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Add Ethernet-level RX n-tuple filtering and 'clear' actionBen Hutchings2-13/+103
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Add MAC parameter type based on the parse_sopass() functionBen Hutchings1-12/+14
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Fix RX n-tuple masks and documentationBen Hutchings2-41/+105
For fields with unspecified values, explicitly mask all bits. Do not allow specifying a mask without a value. Change usage information to clarify which parameters are optional or required. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool: Generalise cmdline_info::unwanted_val to a "seen" flag or bitmaskBen Hutchings1-31/+37
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-11-16ethtool-copy.h: sync with net-next-2.6Ben Hutchings1-71/+159
This covers kernel changes up to: commit d5dbda23804156ae6f35025ade5307a49d1db6d7 Author: Jesse Gross <jesse@nicira.com> Date: Wed Oct 20 13:56:07 2010 +0000 ethtool: Add support for vlan accleration. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2010-08-10Release version 2.6.35.Jeff Garzik2-1/+9
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10Sync with upstream 2.6.35 release.Jeff Garzik1-20/+22
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10ethtool: Fix handling of zero weights for flow hash indirectionBen Hutchings1-1/+1
The loop to generate an indirection table from a list of weights never advances by more than one weight at a time. Thus, if there is a 0 in the list (except at the end) the corresponding RX ring will be assigned 1 hash bucket rather than 0. Change 'if' to 'while'. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10ethtool: Remove specification of number bases for RX-ntuple parametersBen Hutchings1-8/+8
The numeric parameters for RX n-tuple filters may be specified as either decimal or hexadecimal with a '0x' prefix, like most other numeric parameters. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10ethtool: Use inet_aton() to parse IPv4 addresses for RX n-tuple controlBen Hutchings2-14/+20
Note that inet_aton() allows the address to be specified as a single 32-bit number in the same formats as strtoull(), so this is backward- compatible. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-07-02ethtool: Add support for control of RX flow hash indirectionBen Hutchings2-0/+188
Many NICs use an indirection table to map an RX flow hash value to one of an arbitrary number of queues (not necessarily a power of 2). It can be useful to remove some queues from this indirection table so that they are only used for flows that are specifically filtered there. It may also be useful to weight the mapping to account for user processes with the same CPU-affinity as the RX interrupts. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-07-02ethtool-copy.h: sync with net-nextBen Hutchings1-17/+29
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-07-02ethtool: Fix list of hash options in manual pageBen Hutchings1-1/+1
'p' is not a valid option. The 'm' option was missing a preceding 'B' for bold. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25Update email address.Jeff Garzik1-1/+1
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25ethtool: Use named flag support to update extended offload flagsBen Hutchings1-58/+12
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25ethtool: Implement named message type flagsBen Hutchings2-14/+156
Allow message type flags to be turned on and off by name. Print the names of the currently set flags below the numeric value. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25ethtool: Add support for named flagsBen Hutchings1-1/+39
Define an argument type CMDL_FLAG, which can be used to set and clear flags. For each setting that can be modified in this way, the flags to be set and cleared are accumulated in two variables. Add support for CMDL_FLAGS parse_generic_cmdline(). Add utility function print_flags(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25ethtool: Mark show_usage() as noreturnBen Hutchings1-0/+2
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-25ethtool: Parse integers into variables of different sizes and byte ordersBen Hutchings2-95/+160
The arguments for RX n-tuple traffic direction are filled into structure fields of varying size, some of which are in big-endian rather than native byte order. Currently parse_generic_cmdline() only supports 32-bit integers in native byte order, so this does not work correctly. Replace CMDL_INT and CMDL_UINT with the more explicit CMDL_S32 and CMDL_U32. Add CMDL_U16 and CMDL_U64 for narrower and wider integers, and CMDL_BE16 and CMDL_BE32 for big-endian unsigned integers. Use them for RX n-tuple argument parsing. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-06-21ethtool: Add support for sfc register dumpsBen Hutchings4-1/+3864
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-05-25Release version 2.6.34.Jeff Garzik2-2/+8
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-04-06Add names of newer Marvell chipsStephen Hemminger1-0/+3
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-04-06ethtool: RXHASH flag support (v2)Stephen Hemminger3-5/+39
Add support for RXHASH flag in ethtool offload. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-03-30ethtool-copy.h: sync with net-next (cosmetic whitespace updates)Jeff Garzik1-8/+14
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-03-30ethtool: Correctly pull n-tuple string length for get_rx_ntuplePeter Waskiewicz2-5/+28
This patch fixes inconsistencies with the kernel header files, while correctly gets the variable length string counts for the get_rx_ntuple return value. It does this by using the new GSSET_INFO ioctl. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>