AgeCommit message (Collapse)AuthorFilesLines
2013-02-07ethtool.8: Correct minor formatting errorsBen Hutchings1-6/+3
Signed-off-by: Ben Hutchings <>
2013-02-07ethtool.8: Fix reference to nonexistent l4m keyword for flow specsBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2013-02-07ethtool.8: Clarify explanation of flow spec mask keywordsBen Hutchings1-3/+4
Signed-off-by: Ben Hutchings <>
2013-02-07ethtool.8: Show ethtool -s speed keyword as optional, matching implementationBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2013-02-07ethtool.8: Improve description of --test optionBen Hutchings1-5/+7
There were numerous grammatical errors in these descriptions, combined with poor formatting. Describe each mode under a separate heading. Signed-off-by: Ben Hutchings <>
2013-02-07ethtool.8: Improve description of --flash optionBen Hutchings1-6/+13
Avoid repeating 'flash' as a verb; that doesn't explain anything. For consistency, describe both parameters (aside from devname) under separate headings, formatted as lower-case italic. Explain how the filename is resolved. Explain what non-zero values of N would mean, and that they are driver-dependent. Signed-off-by: Ben Hutchings <>
2013-01-22ethtool: Fix space-after-if checkpatch errorsMark Einon3-3/+3
Some version check statements are lacking a space after the if () statement. Add them in. Signed-off-by: Mark Einon <> Signed-off-by: Ben Hutchings <>
2013-01-22ethtool: Add version check for et131x regsMark Einon1-0/+4
Added a version check for the et131x reg dump, in case the dump format needs to be changed later. Signed-off-by: Mark Einon <> Signed-off-by: Ben Hutchings <>
2013-01-22rxclass: Show full 64 bits of user-data in rxclass_print_nfc_spec_ext()Ben Hutchings1-1/+1
Previously only the lower 32 bits would be shown. Signed-off-by: Ben Hutchings <>
2013-01-22Added dst-mac parameter for L3/L4 flow spec rules. This is usefull in ↵Yan Burman3-19/+54
vSwitch configurations. Signed-off-by: Yan Burman <> Signed-off-by: Amir Vadai <> Signed-off-by: Ben Hutchings <>
2013-01-22ethtool-copy.h: sync with netBen Hutchings1-5/+20
This covers kernel changes up to: commit dc2e57340deb8be1133b1eae2c7d4303133c133c Author: Yan Burman <> Date: Thu Dec 13 05:20:59 2012 +0000 net: ethool: Document struct ethtool_flow_ext Signed-off-by: Ben Hutchings <>
2012-12-13Release version 3.7.Ben Hutchings3-2/+8
Signed-off-by: Ben Hutchings <>
2012-12-03Implemented basic optics diagnostics for SFF-8472Aurelien Guillaume7-19/+404
The current output of -m has been modified so that everything lines up correctly. The --module-info option alias has been added. Signed-off-by: Aurelien Guillaume <> Signed-off-by: Ben Hutchings <>
2012-11-08ethtool: Support et131x registers in -dMark Einon4-1/+124
The et131x register set contains useful details of RX/TX queues for the device. This dumps them with the -d option. Signed-off-by: Mark Einon <> Signed-off-by: Ben Hutchings <>
2012-10-10Gracefully handle failure of register dump pretty-printerBen Hutchings1-3/+10
If we have a pretty-printer matching the driver name for a register dump, but it doesn't handle the reported dump version, then we currently fail and print: Cannot dump registers: Success Instead, fall back to hex dump. Also, don't use perror() to explain a failure of dump_regs(). errno is not meaningful in either failure case. Signed-off-by: Ben Hutchings <>
2012-10-05Release version 3.6.Ben Hutchings3-2/+10
Signed-off-by: Ben Hutchings <>
2012-10-05ethtool: --set-eee sends ETHTOOL_SEEE ioctl even if nothing changedBruce Allan1-1/+1
When setting EEE parameters with the --set-eee command line option, ethtool will send the ETHTOOL_SEEE ioctl down to the driver even if none of the provided parameters are a change from current settings. Simply ignore it when that happens as done with other ethtool commands. Signed-off-by: Bruce Allan <> Tested-by: Aaron Brown <> Signed-off-by: Jeff Kirsher <> Signed-off-by: Ben Hutchings <>
2012-09-06ethtool: don't overwrite useful bits in advertising bitfieldJohan Gunnarsson1-14/+77
There are bits in this bitfield that we want to leave untouched (PAUSE and ASYM_PAUSE bits) when changing other bits (speed and duplex bits.) Previously, these were always overwritten to zero when running commands like "ethtool -s eth0 speed 10 duplex full autoneg off". Signed-off-by: Johan Gunnarsson <> [bwh: Fixed spelling and formatting] Signed-off-by: Ben Hutchings <>
2012-09-06test-cmdline: Test -s mdix keywordBen Hutchings1-1/+3
Signed-off-by: Ben Hutchings <>
2012-09-06ethtool.8: Mark-up mdix arguments properlyBen Hutchings1-5/+6
Signed-off-by: Ben Hutchings <>
2012-09-06ethtool: allow setting MDI-X stateJesse Brandeburg2-10/+53
A bit ago ethtool added support for reading MDI-X state, this patch finishes the implementation, adding the complementary write command. Add support to ethtool for controlling the MDI-X (crossover) state of a network port. Most adapters correctly negotiate MDI-X, but some ill-behaved switches have trouble and end up picking the wrong MDI setting, which results in complete loss of link. Usually this error condition can be observed when multiple ethtool -r ethX are required before link is achieved. This patch allows the user to override the normal "auto" setting and force the crossover state to on or off. The set will fail if the driver doesn't support the get, as suggested by Ben Hutchings. setting MDI not supported In addition the do_gset output was changed slightly to report the value set by the user (when the driver supports the set) old: MDI-X: on new: MDI-X: on (auto) or MDI-X: on (forced) usage is ethtool -s eth0 mdix [auto|on|off] Signed-off-by: Jesse Brandeburg <> CC: Ben Hutchings <> Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher <> Signed-off-by: Ben Hutchings <>
2012-09-06ethtool-copy.h: sync with net-nextBen Hutchings1-6/+11
This covers kernel changes up to: commit 6f6bbc186dc8e4e0c628db7decbd1a5e02cb5fd8 Author: Jesse Brandeburg <> Date: Thu Jul 26 02:30:53 2012 +0000 ethtool.h: MDI setting support Signed-off-by: Ben Hutchings <>
2012-09-06Merge commit 'v3.5'Ben Hutchings1-1/+1
I tagged v3.5 and pushed out master in the middle of rebasing master to add the last fix for 3.5. Conflicts: NEWS
2012-08-03Release version 3.5.Ben Hutchings2-1/+11
Signed-off-by: Ben Hutchings <>
2012-08-03ethtool.8: Correct full name of EEEBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-08-03ethtool.8: Correct full name of EEEBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-08-02Release version 3.5.Ben Hutchings2-1/+11
Signed-off-by: Ben Hutchings <>
2012-07-17ethtool.spec: Do not include ChangeLog or INSTALLBen Hutchings1-1/+1
The ChangeLog is ancient history, replaced by the version control changelog. INSTALL is redundant in a binary package. Signed-off-by: Ben Hutchings <>
2012-07-17ethtool.spec: Update URL to the current home pageBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-07-17ethtool.spec: Update summary and description, based on Fedora packageBen Hutchings1-6/+4
Signed-off-by: Ben Hutchings <>
2012-07-16Merge commit 'v3.4.2'Ben Hutchings4-28/+85
2012-07-16ethtool: added support for 40G link.Parav Pandit1-0/+4
1. defined values for KR4, CR4, SR4, LR4 PHY. Signed-off-by: Parav Pandit <> Signed-off-by: Ben Hutchings <>
2012-07-16ethtool-copy.h: sync with net-nextBen Hutchings1-0/+8
This covers kernel changes up to: commit e440cf2ca0a1b075c64016240d46c3aa9d877bbf Author: <> Date: Wed Jun 27 03:56:12 2012 +0000 net: added support for 40GbE link. Signed-off-by: Ben Hutchings <>
2012-07-16Don't trust drivers to null-terminate stringsBen Hutchings1-15/+23
Some drivers have been seen to fill all bytes of ethtool_drvinfo::fw_version without including a null terminator, which effectively concatenates the following bytes to the string. We've already dealt with a similar problem in dump_stats() (commit 7764430a139e4a089127f5616b0d56f497be1036). Try to cover all the remaining string fields: - In dump_drvinfo(), limit the length using printf() modifiers - Add an option to get_stringset() to null-terminate all strings - Change all callers except dump_stats() to set that option Signed-off-by: Ben Hutchings <>
2012-07-16test-cmdline: More test cases for EEE optionsBen Hutchings1-0/+4
Signed-off-by: Ben Hutchings <>
2012-07-16Ethtool: Add EEE supportYuval Mintz3-20/+159
This patch adds 2 new ethtool commands which can be used to manipulate network interfaces' support in EEE. Output of 'get' has the following form: EEE Settings for p2p1: EEE status: enabled - active Tx LPI: 1000 (us) Supported EEE link modes: 10000baseT/Full Advertised EEE link modes: 10000baseT/Full Link partner advertised EEE link modes: 10000baseT/Full Thanks goes to Giuseppe Cavallaro for his original patch. Signed-off-by: Yuval Mintz <> Signed-off-by: Eilon Greenstein <> Signed-off-by: Ben Hutchings <>
2012-07-16Release version 3.4.2.Ben Hutchings2-1/+10
Signed-off-by: Ben Hutchings <>
2012-07-16Fix reporting of VLAN tag offload flags on Linux < 2.6.37Ben Hutchings1-0/+41
These kernel versions implement ETHTOOL_GFLAGS but do not include the flags for VLAN tag offload (and do not implement ETHTOOL_GFEATURES). Since the VLAN tag offload features were already defined and implemented by many drivers, we shouldn't assume they are off. Instead, since these feature flag values were stable, read them from sysfs. Signed-off-by: Ben Hutchings <>
2012-07-16Remove bogus error message when changing offload settings on Linux < 2.6.39Ben Hutchings1-27/+33
We should not be checking for fixed features when we have no information about which are fixed. Signed-off-by: Ben Hutchings <>
2012-07-16ethtool: Resolve use of uninitialized memory in rxclass_get_dev_infoAlexander Duyck1-0/+1
The ethtool function for getting the rule count was not zeroing out the data field before passing it to the kernel. As a result the value started uninitialized and was incorrectly returning a result indicating that devices supported setting new rule indexes. In order to correct this I am adding a one line fix that sets data to zero before we pass the command to the kernel. Signed-off-by: Alexander Duyck <> Signed-off-by: Ben Hutchings <>
2012-06-13Merge commit 'v3.4.1'Ben Hutchings5-4/+48
2012-06-13Release version 3.4.1.Ben Hutchings2-1/+9
Signed-off-by: Ben Hutchings <>
2012-06-13ethtool.8: Fix the dateBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-06-13ethtool: Handle more errors when getting feature namesBen Hutchings2-2/+38
'ethtool -k eth0' generally works for unprivileged users, but in some kernel versions ETHTOOL_GSSET_INFO wrongly returns -EPERM. We need to fall back to the old offload operations in this case. Also, if we get some other error code, report that before exiting. Add regression test cases covering this and some other operations that may fail (which were already handled correctly). Signed-off-by: Ben Hutchings <>
2012-06-08Make link mode listing in dump_link_caps() a data-driven loopBen Hutchings1-68/+31
This removes lots of repeated code and makes it trivial to support additional modes. Signed-off-by: Ben Hutchings <>
2012-06-08ethtool: fix to display support for KX4 and KX PHYAjit Khaparde1-0/+14
Signed-off-by: Ajit Khaparde <> Signed-off-by: Ben Hutchings <>
2012-06-08ethtool-copy.h: sync with net-nextBen Hutchings1-1/+37
This covers kernel changes up to: commit 80f12eccce775dc6bb93dba9b52529740f929237 Author: Yuval Mintz <> Date: Wed Jun 6 17:13:06 2012 +0000 Added kernel support in EEE Ethtool commands Signed-off-by: Ben Hutchings <>
2012-06-08Release version 3.4.Ben Hutchings2-1/+11
Signed-off-by: Ben Hutchings <>
2012-06-02Change -k/-K options to use ETHTOOL_{G,S}FEATURESBen Hutchings4-124/+707
Rewrite the offload get and set functions to use the generic features API where available, while maintaining a similar output format. Add the long options --show-features and --features as additional aliases for -k and -K. Where there is exactly one named feature corresponding to an old offload name, show the feature using the old offload name. Where there are multiple features corresponding to an old offload name, show the features as a group, indented underneath it. Add some test cases to check that this works properly with or without the generic features API. (These may well be insufficient.) Signed-off-by: Ben Hutchings <>
2012-06-02Report when offload feature changes are not exactly as requestedBen Hutchings2-22/+77
When an offload feature is enabled or disabled, this can change the state of other features that depend on it, or may itself be deferred if it depends on a feature that is disabled. Report when this happens, and fail if no offload features could be changed. Signed-off-by: Ben Hutchings <>