path: root/
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-22Added dst-mac parameter for L3/L4 flow spec rules. This is usefull in ↵Yan Burman1-0/+6
vSwitch configurations. Signed-off-by: Yan Burman <> Signed-off-by: Amir Vadai <> Signed-off-by: Ben Hutchings <>
2012-12-13Release version 3.7.Ben Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-12-03Implemented basic optics diagnostics for SFF-8472Aurelien Guillaume1-3/+5
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-10-05Release version 3.6.Ben Hutchings1-1/+1
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 Brandeburg1-0/+8
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-08-03ethtool.8: Correct full name of EEEBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-07-16Ethtool: Add EEE supportYuval Mintz1-0/+32
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-06-13ethtool.8: Fix the dateBen Hutchings1-1/+1
Signed-off-by: Ben Hutchings <>
2012-06-02Change -k/-K options to use ETHTOOL_{G,S}FEATURESBen Hutchings1-19/+12
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-05-23ethtool: Addition of -m option to dump module eepromStuart Hodgson1-0/+10
The -m option now allows for retrieval of EEPROM information form a plug in module such as SFP+. This shows specific information about the type and capabilities of the module in use The format can be easily extended to support other modules types such as QSFP in future. Raw data dump is also supported. Signed-off-by: Stuart Hodgson <> Signed-off-by: Ben Hutchings <>
2012-05-23Add the command to show the time stamping capabilities.Richard Cochran1-0/+7
Signed-off-by: Richard Cochran <> [bwh: Rename the long option to '--show-time-stamping'] Signed-off-by: Ben Hutchings <>
2012-02-07ethtool.8: Add ntuple to the -K option in the man pageAmir Hanania1-0/+4
Signed-off-by: Amir Hanania <> Tested-by: Stephen Ko <> Signed-off-by: Jeff Kirsher <> Signed-off-by: Ben Hutchings <>
2012-01-21ethtool.8: Improve description of RX NFC optionsBen Hutchings1-4/+5
State explicitly that arguments beginning with 'flow-type' will insert or update a rule. Refer consistently to 'flow type' rather than 'network traffic type'. Refer to 'options and rules', covering both flow hashing and steering/filtering. Signed-off-by: Ben Hutchings <>
2012-01-21ethtool.8: Don't mention the 'clear rule' action for NFC rulesBen Hutchings1-1/+0
The sfc driver implemented a 'clear rule' action as a means to delete a rule through the n-tuple API. This action is not valid or useful in the RX NFC API and it's probably confusing to mention it at all. Signed-off-by: Ben Hutchings <>
2012-01-21Merge RX NFC optionsBen Hutchings1-81/+74
Santwona Behera originally intended to extend the -n and -N options to cover querying and setting rules as well as flow hash options. However, his patch fell between the cracks and the ethtool utility got n-tuple support first, using the -u and -U options. When RX NFC rule support was finally added I insisted that it should not require different command syntax, so rules must be accessed through these options. The sets of valid argument lists following the -n and -u options are still non-overlapping, and similarly for the -N and -U options. Since the top level argument parser now supports arbitrary numbers of option aliases, we can merge these pairs together and achieve the original intent. Signed-off-by: Ben Hutchings <>
2011-12-02Add support for querying and setting private flagsBen Hutchings1-0/+20
Signed-off-by: Ben Hutchings <>
2011-11-03Move argument parsing to sub-command functionsBen Hutchings1-2/+2
Instead of doing most of the argument parsing in parse_cmdline(), find the sub-command and (if required) the device name in main() and do the rest in the sub-command handler function. Pass argc and argp around in struct cmd_context. This also tightens up argument parsing slightly: extraneous or missing arguments will now result in an error in a few cases where they were previously ignored. All test cases now pass. Replace sub-command dispatch in doit() with a function pointer in struct option. Signed-off-by: Ben Hutchings <>
2011-11-01ethtool.8: Allow line-break in description of parameters after -NBen Hutchings1-2/+2
These lines are currently unbreakable and result in ugly wrapping in an 80-column window. Signed-off-by: Ben Hutchings <>
2011-11-01ethtool.8: Change device name metavariable from 'ethX' to 'devname'Ben Hutchings1-31/+31
The name 'ethX' is a poor choice because: - Many ethtool options are applicable to non-Ethernet devices - Ethernet device names don't have to begin with 'eth', and the new convention is to use the prefix 'lan' for LAN-on-motherboard or 'pci' for PCI plug-in cards The online help text already uses 'DEVNAME' instead, so change the manual page to be consistent. Signed-off-by: Ben Hutchings <>
2011-10-28ethtool.8: Fix initial blank line/pageBen Hutchings1-1/+1
Commit 8d63f72ccdcb1b19358d753a8f48f08dcd2136f0 included a regression of the problem fixed in commit 97b5471fc446d60f8772631b9c4e6d824404336d. Signed-off-by: Ben Hutchings <>
2011-10-17ethtool: add ETHTOOL_{G,S}CHANNEL support.Sucheta Chakraborty1-0/+29
Used to configure number of tx/ rx/ other channels. Reqd. man page changes are included. Signed-off-by: Sucheta Chakraborty <> Signed-off-by: Ben Hutchings <>
2011-10-04ethtool: add support for external loopback.Sucheta Chakraborty1-4/+11
External loopback will be performed in addition to other offline tests. User need to pass new parameter "external_lb" for the same. Reqd. man page changes included. Signed-off-by: Sucheta Chakraborty <> [bwh: Report whether the external loopback test 'was', not 'is' executed. For compatibility, don't report this if not requested.] Signed-off-by: Ben Hutchings <>
2011-07-14ethtool: RX NFC correctionsSebastian Pöhn1-0/+5
This patch: least as long there is no opportunity to use others than IPv4 and there is no frontend option to enter ip_ver. Signed-off-by: Sebastian Poehn <> Signed-off-by: Ben Hutchings <>
2011-06-06ethtool: Add support for 20G link speedYaniv Rosner1-0/+2
Signed-off-by: Yaniv Rosner <>
2011-06-02ethtool: Added FW dump supportAnirban Chakraborty1-0/+20
Added support to take FW dump via ethtool. Signed-off-by: Anirban Chakraborty <> Signed-off-by: Ben Hutchings <>
2011-05-13Add RX packet classification interfaceAlexander Duyck1-91/+102
This patch was originally introduced as: [PATCH 1/3] [ethtool] Add rx pkt classification interface Signed-off-by: Santwona Behera <> I removed the local caching of rules. I dropped the use of regions as there were multiple issues found. A network flow classifier is defined using the exact same syntax as n-tuple, and the tool will correct for the fact that NFC uses the 1's compliment of the n-tuple mask. I also updated the ordering of new rules being added. All new rules will take the highest numbered open rule when no location is specified. I split out the addition of bitops and the updates to documentation into separate patches. This makes the total patch size a bit more manageable since the addition of NFC and the merging of it with n-tuple were combined into this patch. If we setup a rule and the device has the NTUPLE flag set we will first try to use set_rx_ntuple. If that fails with EOPNOTSUPP we then will attempt to use the network flow classifier rule insertion. Updated the output to make use of the updated network flow classifier extensions that have been accepted into the kernel. Merged the documentation update into this patch. In addition the documentation changes were made such that there is only one listing of the individual options and they are all listed as optional. Several fixes to address things such as the fact that we were maintaining the table logic even though we only need it for displaying all of the rules, or when adding a rule with no location specified. As such all of the logic for deleting or finding rules in the table has been removed. Signed-off-by: Alexander Duyck <> [bwh: Abbreviated the above commit message. Fixed a minor formatting error in the manual page additions.] Signed-off-by: Ben Hutchings <>
2011-04-27Add support for ESP as a separate protocol from AHAlexander Duyck1-3/+5
This change is mostly cosmetic. NIU had supported AH and ESP seperately. As such it is possible that a return value of ESP or AH may be returned for a has request instead of the AH_ESP combined value. To resolve that the inputs are combined for AH and ESP into the AH_ESP value and return values for AH and ESP will display the combined string info. Signed-off-by: Alexander Duyck <>
2011-04-09ethtool: fix manpage so that it will display tables againAlexander Duyck1-7/+7
The current ethtool manpage is not displaying tables. After trying to pass the manpage through tbl I repeatedly saw the error: unrecognised format `x' giving up on this table By dropping the 'x' the errors went away and when I built the manpage the tables reappeared so I am assuming this is the correct approach. [bwh: This format modifier improves table layout in groff 1.20.1, but it's not worth losing backward compatibility.] Signed-off-by: Alexander Duyck <> [bwh: Removed two more 'x' format modifiers] Signed-off-by: Ben Hutchings <>
2011-03-23ethtool.8: Fix line-wrapping of optionsBen Hutchings1-100/+108
Several options that take many keyword arguments are now formatted as huge blocks of texts in the synopsis. This is not very readable and it results in a mixture of literal (must be typed) and non-literal (must not be typed) hyphens. Even with hyphenation, full justification can insert extra space that look wrong in commands. There are also minor problems with hyphenation in the detailed descriptiona. Therefore: - Disable full justification and automatic hyphenation in the synopsis - Use the .HP macro (paragraph with hanging indent) in the synopsis for all options that aren't already formatted with the .TP macro - Write all literal hyphens as '\-' so they are not used for line- breaking Signed-off-by: Ben Hutchings <>
2011-03-23ethtool.8: Fix initial blank line/pageBen Hutchings1-1/+3
The .TH macro inserts a page break. There is currently a non-macro line before it, and even though that line is blank this results in a blank line in the terminal and a whole blank page when rendering as Postscript. Use a null macro instead. Signed-off-by: Ben Hutchings <>
2011-03-23ethtool.8: Format tables with tblBen Hutchings1-163/+86
This makes both the source and the output look nicer. Signed-off-by: Ben Hutchings <>
2011-03-23ethtool: remove mask for Auto in advertise sectionEmil Tantilov1-2/+0
The mask for Auto in the advertise section is incorrect for any interface that supports speeds > 1000Mbps. Since the description already states that the mask can be a combination of the supported values it's probably better to just remove it. 'Auto' was misleading anyway. Signed-off-by: Emil Tantilov <> Tested-by: Stephen Ko <> Signed-off-by: Jeff Kirsher <> Signed-off-by: Ben Hutchings <>
2011-02-21ethtool: Add --version optionBen Hutchings1-0/+5
Signed-off-by: Ben Hutchings <>
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 <> Signed-off-by: Ben Hutchings <>
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 <>
2011-01-10ethtool.8: Reword synopses for consistency and styleBen Hutchings1-3/+3
Signed-off-by: Ben Hutchings <>
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 <>
2011-01-10ethtool.8: Fix obvious spelling errorsBen Hutchings1-2/+2
Signed-off-by: Ben Hutchings <>
2011-01-10ethtool.8: Substitute version at configure timeBen Hutchings1-0/+819
Rename ethtool.8 to and let autoconf set the version. Signed-off-by: Ben Hutchings <>