]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf38d138a7da6510a1184e3bc5f425deb187c3265
tree486eb5a2cdc2db267365a2f4f889479050971fb8
parent421797b1aa363cb897f29f7d365e068dc9d9db81
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