net/ethtool: support get coalesce per queue
authorKan Liang <kan.liang@intel.com>
Fri, 19 Feb 2016 14:24:02 +0000 (09:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2016 03:54:09 +0000 (22:54 -0500)
commit421797b1aa363cb897f29f7d365e068dc9d9db81
tree50c3851083719e586bb6c83a58f57261dab1163b
parentac2c7ad0e5d6030452c9af2fafd192e17fd04264
net/ethtool: support get coalesce per queue

This patch implements sub command ETHTOOL_GCOALESCE for ioctl
ETHTOOL_PERQUEUE. It introduces an interface get_per_queue_coalesce to
get coalesce of each masked queue from device driver. Then the interrupt
coalescing parameters will be copied back to user space one by one.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/core/ethtool.c