summaryrefslogtreecommitdiff
path: root/ethtool.8.in
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-06-01 23:08:32 +0100
committerBen Hutchings <bhutchings@solarflare.com>2012-06-02 01:31:11 +0100
commit6042804cf6ecc229e600cf78124a152a40b0dc89 (patch)
treeba584711c055b95badd90b92dff24f8ffc91238d /ethtool.8.in
parent5bebf1ee71990a00fb7973702e3ed19b3fa71027 (diff)
downloadethtool-6042804cf6ecc229e600cf78124a152a40b0dc89.tar.gz
Change -k/-K options to use ETHTOOL_{G,S}FEATURES
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 <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.8.in')
-rw-r--r--ethtool.8.in31
1 files changed, 12 insertions, 19 deletions
diff --git a/ethtool.8.in b/ethtool.8.in
index 523b737..70ae31d 100644
--- a/ethtool.8.in
+++ b/ethtool.8.in
@@ -199,23 +199,13 @@ ethtool \- query or control network driver and hardware settings
.BN length
.BN value
.HP
-.B ethtool \-k|\-\-show\-offload
+.B ethtool \-k|\-\-show\-features|\-\-show\-offload
.I devname
.HP
-.B ethtool \-K|\-\-offload
-.I devname
-.B2 rx on off
-.B2 tx on off
-.B2 sg on off
-.B2 tso on off
-.B2 ufo on off
-.B2 gso on off
-.B2 gro on off
-.B2 lro on off
-.B2 rxvlan on off
-.B2 txvlan on off
-.B2 ntuple on off
-.B2 rxhash on off
+.B ethtool \-K|\-\-features|\-\-offload
+.I devname feature
+.A1 on off
+.RB ...
.HP
.B ethtool \-p|\-\-identify
.I devname
@@ -428,11 +418,14 @@ parameters allow writing to certain portions of the EEPROM.
Because of the persistent nature of writing to the EEPROM, a device-specific
magic key must be specified to prevent the accidental writing to the EEPROM.
.TP
-.B \-k \-\-show\-offload
-Queries the specified network device for offload information.
+.B \-k \-\-show\-features \-\-show\-offload
+Queries the specified network device for the state of protocol
+offload and other features.
.TP
-.B \-K \-\-offload
-Changes the offload parameters of the specified network device.
+.B \-K \-\-features \-\-offload
+Changes the offload parameters and other features of the specified
+network device. The following feature names are built-in and others
+may be defined by the kernel.
.TP
.A2 rx on off
Specifies whether RX checksumming should be enabled.