summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2009-11-25ethtool: Report pause auto-negotiation flagsBen Hutchings1-0/+13
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool: Report link partner advertisingBen Hutchings1-9/+11
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool: Decode PORT_OTHERBen Hutchings1-0/+3
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool: Update ethtool-copy.hBen Hutchings1-7/+100
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-25ethtool: Remove support for RX hashing by portBen Hutchings2-10/+1
The kernel-side support for this was removed by: commit 59089d8d162ddcb5c434672e915331964d38a754 Author: Santwona Behera <santwona.behera@sun.com> Date: Fri Feb 20 00:58:13 2009 -0800 ethtool: Add RX pkt classification interface Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-23Command line help does not require DEVNAME on command line.Jeff Garzik1-1/+2
Reflect this in usage text. Patch via Robert Scheck <robert@fedoraproject.org>, possibly other sources as well? Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06Change version from "6" to "6git", indicating it is not truly v6.Jeff Garzik1-1/+1
Should have done this immediately after v6 release. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06man page: Add GRO and LRO to the full description of the -K optionBen Hutchings1-0/+6
Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06ethtool: Support arbitrary speedsBen Hutchings2-34/+12
The speed and speed_hi fields of struct ethtool_cmd together represent a value in units of Mbit/s. The valid speed settings are hardware- dependent and should be checked by the driver. Remove our validation and allow arbitrary positive values. Continue to report 0 and -1 as "Unknown!" since some drivers will report these invalid values when the link is down. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06Merge several minor changes from Debian.Jeff Garzik1-41/+49
Namely, wrap ioctl send so that Debian can more easily support kernels older than 2.4.x. We don't support that, but they wish to. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06igb, ixgbe: Trim trailing whitespace.Jeff Garzik2-65/+65
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06ethtool: Manual page correctionsBen Hutchings1-3/+3
Fix the following nits, too small to deserve separate patches: There is a separator missing between -K and --offload. The first mention of -p says the long option is --blink, but it's really --identify. The [N] following -p has the brackets in italics, not the N. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2009-03-06ethtool: Show short message for syntax errorBen Hutchings1-7/+16
In case of a syntax error it's likely to be more helpful to just say that rather than showing the entire usage information, which is now very long. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06Get/set GRO settings.Jeff Garzik3-8/+39
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-06Explicitly ship GPLv2 license.Jeff Garzik2-1/+340
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-01-15Directly reference GPL v2 via new LICENSE file.Jeff Garzik2-1/+4
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-09-13ethtool: Add register dump support for all r8169 driver cardsAndrew Paprocki1-46/+64
This adds all MAC versions currently found in the r8169 to the RealTek table and modifies the dump logic to handle card versions >= RTL8169 instead of specifically looking at the few previously supported cards. Signed-off-by: Andrew Paprocki <andrew@ishiboo.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-09-13ethtool: command line support for lroBen Hutchings1-6/+47
Add lro support to command in similar manner to TSO, GSO, etc. Based on patch by Stephen Hemminger <http://article.gmane.org/gmane.linux.network/88124>. My changes: - Changed error return codes for setting LRO to be unique. - Report failure to get device flags, consistent with other offload settings. - Fixed code spacing. Tested with the sfc driver. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-09-13Add support for rx flow hash configuration in a network deviceSantwona Behera2-0/+334
Added new interfaces to ethtool to configure receive network flow distribution across multiple rx rings using hashing. Signed-off-by: Santwona Behera <santwona.behera@sun.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-09-13ethtool: Use ethtool_cmd->speed_hiBrandon Philips2-122/+66
struct ethtool_cmd now has a speed_hi field to support more than 65535 Mb devices, use it. Also, pull in the ethtool-copy.h file without the __KERNEL__ sections. Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-01-12ethtool: correct man page for advertise mask value of 10gigAuke Kok1-1/+1
10 gigabit is defined as 0x1000 in the advertise mask. The man page mistakenly lists 0x800. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
2008-01-12ethtool: update license field in specfile to be correctly definedAuke Kok1-1/+1
RPM uses "License" as field and not "Copyright". Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>