aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2018-07-09 12:19:48 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-07-09 15:53:58 -0400
commiteadec877ce9ca46a94e9036b5a44e7941d4fc501 (patch)
tree1771ab980c8ddc4fdfe0523bd62f52c7b1ace5ab /include/linux/netdevice.h
parent58b0b3ed4c226f62fcdf82df366d644b7a2226ca (diff)
net: Add support for subordinate traffic classes to netdev_pick_tx
This change makes it so that we can support the concept of subordinate device traffic classes to the core networking code. In doing this we can start pulling out the driver specific bits needed to support selecting a queue based on an upper device. The solution at is currently stands is only partially implemented. I have the start of some XPS bits in here, but I would still need to allow for configuration of the XPS maps on the queues reserved for the subordinate devices. For now I am using the reference to the sb_dev XPS map as just a way to skip the lookup of the lower device XPS map for now as that would result in the wrong queue being picked. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index b1ff77276bc4..fda0bcda7a42 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2103,7 +2103,7 @@ static inline void netdev_for_each_tx_queue(struct net_device *dev,
2103 2103
2104struct netdev_queue *netdev_pick_tx(struct net_device *dev, 2104struct netdev_queue *netdev_pick_tx(struct net_device *dev,
2105 struct sk_buff *skb, 2105 struct sk_buff *skb,
2106 void *accel_priv); 2106 struct net_device *sb_dev);
2107 2107
2108/* returns the headroom that the master device needs to take in account 2108/* returns the headroom that the master device needs to take in account
2109 * when forwarding to this dev 2109 * when forwarding to this dev
@@ -2568,7 +2568,7 @@ void dev_close_many(struct list_head *head, bool unlink);
2568void dev_disable_lro(struct net_device *dev); 2568void dev_disable_lro(struct net_device *dev);
2569int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb); 2569int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb);
2570int dev_queue_xmit(struct sk_buff *skb); 2570int dev_queue_xmit(struct sk_buff *skb);
2571int dev_queue_xmit_accel(struct sk_buff *skb, void *accel_priv); 2571int dev_queue_xmit_accel(struct sk_buff *skb, struct net_device *sb_dev);
2572int dev_direct_xmit(struct sk_buff *skb, u16 queue_id); 2572int dev_direct_xmit(struct sk_buff *skb, u16 queue_id);
2573int register_netdevice(struct net_device *dev); 2573int register_netdevice(struct net_device *dev);
2574void unregister_netdevice_queue(struct net_device *dev, struct list_head *head); 2574void unregister_netdevice_queue(struct net_device *dev, struct list_head *head);