]> git.baikalelectronics.ru Git - kernel.git/commit
netdev: Add netdev->select_queue() method.
authorDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 10:03:33 +0000 (03:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:10 +0000 (19:21 -0700)
commitf4e4a42f6dcc875ecee703362bd07181d3671e1f
treea864c90974a8e998d56ee9f04801eb3f81a6bacf
parentaec19a9e94f5dd8e7a7cb86ec13b184644124d3f
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>
include/linux/netdevice.h
net/core/dev.c