]> git.baikalelectronics.ru Git - kernel.git/commit
net/ethtool: support set coalesce per queue
authorKan Liang <kan.liang@intel.com>
Fri, 19 Feb 2016 14:24:03 +0000 (09:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2016 03:54:10 +0000 (22:54 -0500)
commitbc139d2a9ef0602357417ffe87a27adb94e4f20f
tree486eb5a2cdc2db267365a2f4f889479050971fb8
parent523f8186d0b260bbefe711925eb0f930e72c2c68
net/ethtool: support set coalesce per queue

This patch implements sub command ETHTOOL_SCOALESCE for ioctl
ETHTOOL_PERQUEUE. It introduces an interface set_per_queue_coalesce to
set coalesce of each masked queue to device driver. The wanted coalesce
information are stored in "data" for each masked queue, which can copy
from userspace.
If it fails to set coalesce to device driver, the value which already
set to specific queue will be tried to rollback.

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