netpoll: call ->ndo_select_queue() in tx path
authorAmerigo Wang <amwang@redhat.com>
Mon, 17 Sep 2012 20:16:31 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2012 21:19:09 +0000 (17:19 -0400)
In netpoll tx path, we miss the chance of calling ->ndo_select_queue(),
thus could cause problems when bonding is involved.

This patch makes dev_pick_tx() extern (and rename it to netdev_pick_tx())
to let netpoll call it in netpoll_send_skb_on_dev().

Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
Tested-by: Sylvain Munaut <s.munaut@whatever-company.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found