diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2016-10-28 11:43:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-31 15:00:47 -0400 |
commit | 8d059b0f6f5b1d3acf829454e1087818ad660058 (patch) | |
tree | 8e6f21ec540692e9417cbc75a0da706a6b8669cc /include/linux/netdevice.h | |
parent | 9cf1f6a8c4cbb7836b838b51b3b02ddf32c6c6a0 (diff) |
net: Add sysfs value to determine queue traffic class
Add a sysfs attribute for a Tx queue that allows us to determine the
traffic class for a given queue. This will allow us to more easily
determine this in the future. It is needed as XPS will take the traffic
class for a group of queues into account in order to avoid pulling traffic
from one traffic class into another.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e05ab3bd48d2..d91a41860614 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1920,6 +1920,7 @@ int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) return 0; } +int netdev_txq_to_tc(struct net_device *dev, unsigned int txq); void netdev_reset_tc(struct net_device *dev); int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset); int netdev_set_num_tc(struct net_device *dev, u8 num_tc); |