[ethtool 5/6] ethtool: support per-queue sub command --coalesce

2019-01-17 Thread Nicholas Nunley
-usecs-irq: 0 tx-frames-irq: 256 rx-usecs-low: 0 rx-frame-low: 0 tx-usecs-low: 0 tx-frame-low: 0 rx-usecs-high: 0 rx-frame-high: 0 tx-usecs-high: 0 tx-frame-high: 0 Based on patch by Kan Liang Signed-off-by: Nicholas Nunley --- ethtool.8.in | 3 ++- ethtool.c| 60

[ethtool 4/6] ethtool: support per-queue sub command --show-coalesce

2019-01-17 Thread Nicholas Nunley
gh: 0 rx-frame-high: 0 tx-usecs-high: 0 tx-frame-high: 0 Based on patch by Kan Liang Signed-off-by: Nicholas Nunley --- ethtool.8.in | 2 +- ethtool.c| 64 ++-- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/ethtool.8

[ethtool 2/6] ethtool: move cmdline_coalesce out of do_scoalesce

2019-01-17 Thread Nicholas Nunley
Move the definition of cmdline_coalesce out of do_scoalesce and into a macro so it can be resused across functions. No behavior change. Based on patch by Kan Liang Signed-off-by: Nicholas Nunley --- ethtool.c | 142 -- 1 file changed, 74

[ethtool 6/6] ethtool: fix up dump_coalesce output to match actual option names

2019-01-17 Thread Nicholas Nunley
output they see from --show-coalesce, so fix this. Signed-off-by: Nicholas Nunley --- ethtool.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ethtool.c b/ethtool.c index 3aded50..41a6efa 100644 --- a/ethtool.c +++ b/ethtool.c @@ -1372,14 +1372,14 @@ static int

[ethtool 1/6] ethtool: move option parsing related code into function

2019-01-17 Thread Nicholas Nunley
Move option parsing code into find_option function. No behavior changes. Based on patch by Kan Liang Signed-off-by: Nicholas Nunley --- ethtool.c | 49 +++-- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/ethtool.c b/ethtool.c

[ethtool 3/6] ethtool: introduce new ioctl for per-queue settings

2019-01-17 Thread Nicholas Nunley
applied to all queues. SUB_COMMANDs for per-queue settings will be implemented in following patches. Based on patch by Kan Liang Signed-off-by: Nicholas Nunley --- ethtool.8.in | 20 ++ ethtool.c| 101 +++ 2 files changed, 121 insertions