From 6042804cf6ecc229e600cf78124a152a40b0dc89 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 1 Jun 2012 23:08:32 +0100 Subject: 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 --- test-cmdline.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test-cmdline.c') 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" }, -- cgit v1.2.1