aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-15 06:03:33 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-17 22:21:10 -0400
commiteae792b722fef08dcf3aee88266ee7def9710757 (patch)
treea864c90974a8e998d56ee9f04801eb3f81a6bacf /include/linux/netdevice.h
parente3c50d5d25ac09efd9acbe2b2a3e365466de84ed (diff)
netdev: Add netdev->select_queue() method.
Devices or device layers can set this to control the queue selection performed by dev_pick_tx(). This function runs under RCU protection, which allows overriding functions to have some way of synchronizing with things like dynamic ->real_num_tx_queues adjustments. This makes the spinlock prefetch in dev_queue_xmit() a little bit less effective, but that's the price right now for correctness. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index fdac1159253e..9464e6452967 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -724,6 +724,9 @@ struct net_device
724 void (*poll_controller)(struct net_device *dev); 724 void (*poll_controller)(struct net_device *dev);
725#endif 725#endif
726 726
727 u16 (*select_queue)(struct net_device *dev,
728 struct sk_buff *skb);
729
727#ifdef CONFIG_NET_NS 730#ifdef CONFIG_NET_NS
728 /* Network namespace this network device is inside */ 731 /* Network namespace this network device is inside */
729 struct net *nd_net; 732 struct net *nd_net;