diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2018-07-09 12:19:59 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-07-09 16:41:34 -0400 |
commit | 4f49dec9075aa0277b8c9c657ec31e6361f88724 (patch) | |
tree | 939ce61bc940ed3fbc7abaf0d9b6d3c3ce81da0f /drivers/net/xen-netfront.c | |
parent | a4ea8a3dacc312c3402c78f6e4843afdda9b43a0 (diff) |
net: allow ndo_select_queue to pass netdev
This patch makes it so that instead of passing a void pointer as the
accel_priv we instead pass a net_device pointer as sb_dev. Making this
change allows us to pass the subordinate device through to the fallback
function eventually so that we can keep the actual code in the
ndo_select_queue call as focused on possible on the exception cases.
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 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index a57daecf1d57..d67cd379d156 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -545,7 +545,8 @@ static int xennet_count_skb_slots(struct sk_buff *skb) | |||
545 | } | 545 | } |
546 | 546 | ||
547 | static u16 xennet_select_queue(struct net_device *dev, struct sk_buff *skb, | 547 | static u16 xennet_select_queue(struct net_device *dev, struct sk_buff *skb, |
548 | void *accel_priv, select_queue_fallback_t fallback) | 548 | struct net_device *sb_dev, |
549 | select_queue_fallback_t fallback) | ||
549 | { | 550 | { |
550 | unsigned int num_queues = dev->real_num_tx_queues; | 551 | unsigned int num_queues = dev->real_num_tx_queues; |
551 | u32 hash; | 552 | u32 hash; |