summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2010-02-26Add n-tuple information to the ethtool manpage.Peter Waskiewicz1-0/+102
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>
2010-02-24ethtool-copy.h: import minor reorg and cleanups from net-nextJeff Garzik1-14/+14
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-02-24Support n-tuple filter programmingPeter Waskiewicz2-5/+186
Program underlying ethernet devices with n-tuple flow classification filters. This also adds a new flag to ethtool_flags, allowing n-tuple programming to be toggled using the set_flags call. 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>
2010-02-24Release version 2.6.33.Jeff Garzik2-3/+3
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-02-06ethtool-copy.h: Update to latest net-next versionJeff Garzik1-1/+2
Creates a named constant for the hardcoded firmware version field size. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-24ethtool: Can't parse ints with stroul()PJ Waskiewicz1-2/+21
A recent change to how int's were being parsed from the command line had them being read in with an unsigned int string operator. This didn't allow signed numbers from being read in correctly. This patch adds a get_uint() routine, and fixes the get_int() routine to read in signed values. 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>
2009-12-23Release version 2.6.33-pre1.Jeff Garzik2-1/+23
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-23ethtool: add support for at76c50x-usb driverJohn W. Linville4-1/+36
Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-20ethtool: Do not report link partner advertising flags if set to 0Ben Hutchings1-1/+3
Only some drivers (and none before kernel version 2.6.31) currently set these flags. When the flags are equal to 0 and so we don't know what the link partner advertised, don't report anything. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-01ethtool: Fix switch on port typeBen Hutchings1-6/+6
The new port type cases in commit 6e0512c 'ethtool: Add Direct Attach to the available connector ports' were somehow inserted into the switch on duplex type, not on port type. Move them to the correct place. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-01ethtool: Report MDI-X status for twisted-pair interfacesBen Hutchings1-0/+16
Based on a patch by Chaitanya Lala <clala@riverbed.com>. The MDI-X status can be a useful tool for diagnosing network connectivity issues. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-30ethtool: Remove duplicate type definitionsBen Hutchings1-7/+1
<linux/ethtool.h> and ethtool-copy.h now include <linux/types.h>, which provides these type definitions. The duplicate type definitions in ethtool-util.h conflict with those in <asm/types.h> on Alpha, as reported in <http://bugs.debian.org/545850>. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-29ethtool: Add Direct Attach to the available connector portsPJ Waskiewicz2-0/+8
This adds Direct Attach SFP+ types to the connector ports for the GSET mode. 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>
2009-11-25ethtool: add support for block writing of EEPROMsMandeep Singh Baines2-18/+52
EEPROM write only supports byte writing. Add support for writing an arbitrary number of bytes at an arbitrary offset. Signed-off-by: Mandeep Singh Baines <msb@google.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool-copy.h: update for ETHTOOL_RESET and IPV?_FLOW definitionsJeff Garzik1-0/+33
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25Consolidate cmd line error checking.Jay Fenlason1-24/+32
This also fixes the bug that the usage message displays %%[dx] instead of %[dx]. This does not fix the fact that the usage message says %[dx] in some places and 'N' in others. Maybe it should use %d where only base-10 is accepted, %x where only base-16 is, and N where either is acceptable. Signed-off-by: Jay Fenlason <fenlason@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool: Add option to flash firmware image from specified file, to a device.Ajit Khaparde3-4/+91
This patch adds a new "-f" option to the ethtool utility to flash a firmware image specified by a file, to a network device. The filename is passed to the network driver which will flash the image on the chip using the request_firmware path. The region "on the chip" to be flashed can be specified by an option. It is up to the device driver to enumerate the region number passed by ethtool, to the region to be flashed. The default behavior is to flash all the regions on the chip. Usage: ethtool -f <interface name> <filename of firmware image> ethtool -f <interface name> <filename of firmware image> [ REGION-NUMBER-TO-FLASH ] Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>