Daniel Borkmann 99932d4fc0 netdevice: add queue selection fallback handler for ndo_select_queue
Add a new argument for ndo_select_queue() callback that passes a
fallback handler. This gets invoked through netdev_pick_tx();
fallback handler is currently __netdev_pick_tx() as most drivers
invoke this function within their customized implementation in
case for skbs that don't need any special handling. This fallback
handler can then be replaced on other call-sites with different
queue selection methods (e.g. in packet sockets, pktgen etc).

This also has the nice side-effect that __netdev_pick_tx() is
then only invoked from netdev_pick_tx() and export of that
function to modules can be undone.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-02-17 00:36:34 -05:00
..
2013-12-18 10:33:06 +01:00
2013-12-18 10:33:06 +01:00
2014-02-06 09:55:20 +01:00
2014-01-06 20:10:47 +01:00
2013-12-16 11:29:48 +01:00
2013-12-16 11:29:48 +01:00
2014-01-06 20:10:47 +01:00
2013-12-16 11:29:45 +01:00
2013-10-15 15:16:29 +02:00
2013-12-02 11:51:50 +01:00
2013-12-18 10:33:06 +01:00
2014-01-06 20:10:47 +01:00
2013-12-19 16:30:58 +01:00
2014-01-07 16:21:56 +01:00