summaryrefslogtreecommitdiff
path: root/test-cmdline.c
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 /test-cmdline.c
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 'test-cmdline.c')
-rw-r--r--test-cmdline.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/test-cmdline.c b/test-cmdline.c
index c62bb97..978c312 100644
--- a/test-cmdline.c
+++ b/test-cmdline.c
@@ -86,14 +86,7 @@ static struct test_case {
{ 1, "--set-ring devname rx" },
{ 1, "-G devname foo 1" },
{ 1, "-G" },
- { 0, "-k devname" },
- { 0, "--show-offload devname" },
{ 1, "-k" },
- { 0, "-K devname rx on tx off sg on tso off ufo on gso off gro on" },
- { 0, "--offload devname lro off rxvlan on txvlan off ntuple on rxhash off" },
- { 1, "-K devname rx foo" },
- { 1, "--offload devname rx" },
- { 1, "-K devname foo on" },
{ 1, "-K" },
{ 0, "-i devname" },
{ 0, "--driver devname" },