]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita69d10ae70f37dc104e9d1d990f287122bdbf096
treeca93936887aaf70a0d6b2cd2152a56c9b93a075e
parentd5e39f663a7668a2ed1d76de1b98af24603c59b2
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