net: Use sk_tx_queue_mapping for connected sockets
authorKrishna Kumar <krkumar2@in.ibm.com>
Mon, 19 Oct 2009 23:50:07 +0000 (23:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2009 01:55:47 +0000 (18:55 -0700)
commita4ee3ce3293dc931fab19beb472a8bde1295aebe
treeca93936887aaf70a0d6b2cd2152a56c9b93a075e
parentea94ff3b55188df157a8740bdf3976a87563d705
net: Use sk_tx_queue_mapping for connected sockets

For connected sockets, the first run of dev_pick_tx saves the
calculated txq in sk_tx_queue_mapping. This is not saved if
either the device has a queue select or the socket is not
connected. Next iterations of dev_pick_tx uses the cached value
of sk_tx_queue_mapping.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c