path: root/test-cmdline.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-03Implemented basic optics diagnostics for SFF-8472Aurelien Guillaume1-0/+2
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-09-06test-cmdline: Test -s mdix keywordBen Hutchings1-1/+3
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 Mintz1-0/+11
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-02Change -k/-K options to use ETHTOOL_{G,S}FEATURESBen Hutchings1-7/+0
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-23Run tests in-processBen Hutchings1-0/+7
Wrap main(), exit(), and resource management so that ethtool commands can be tested without starting a new process and without leaking. This will allow deeper teesting that covers ioctl requests and responses. 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/+3
Signed-off-by: Richard Cochran <> [bwh: Rename the long option to '--show-time-stamping'] Signed-off-by: Ben Hutchings <>
2012-01-21Merge RX NFC optionsBen Hutchings1-25/+27
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/+4
Signed-off-by: Ben Hutchings <>
2011-11-03Add more test cases for command-line parsingBen Hutchings1-0/+28
These test cases currently fail. Signed-off-by: Ben Hutchings <>
2011-11-03Add test cases for command-line parsingBen Hutchings1-0/+206
Preparation for refactoring command-line parsing. All these test cases pass. Signed-off-by: Ben Hutchings <>