]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add support for XPS with QoS via traffic classes
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 28 Oct 2016 15:50:13 +0000 (11:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 19:00:48 +0000 (15:00 -0400)
commit8cc1b03f8fb20906bfdca347bc75c38644cb0789
tree3782a230047a5a95b2ca92c990cf5dc8a2a32b28
parentccf57240c8dff3ef0d6622a0afbc937649a06af7
net: Add support for XPS with QoS via traffic classes

This patch adds support for setting and using XPS when QoS via traffic
classes is enabled.  With this change we will factor in the priority and
traffic class mapping of the packet and use that information to correctly
select the queue.

This allows us to define a set of queues for a given traffic class via
mqprio and then configure the XPS mapping for those queues so that the
traffic flows can avoid head-of-line blocking between the individual CPUs
if so desired.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c