]> 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)
commit9fe69c5738e0379197c22910555d9dc37f8dace6
tree486eb5a2cdc2db267365a2f4f889479050971fb8
parentb86f85ab855803b101ea2b1b8d79e8bbfa39978a
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