]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce sk_tx_queue_mapping
authorKrishna Kumar <krkumar2@in.ibm.com>
Mon, 19 Oct 2009 23:46:20 +0000 (23:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2009 01:55:45 +0000 (18:55 -0700)
commit20e5169d94b82e91ccfc71d6e22ef603980d8717
treef287633fd72c4f70882b768836101acff7d1bc62
parent49895c07e6b6f01c6fd252f28dbb99014bbd401f
net: Introduce sk_tx_queue_mapping

Introduce sk_tx_queue_mapping; and functions that set, test and
get this value. Reset sk_tx_queue_mapping to -1 whenever the dst
cache is set/reset, and in socket alloc. Setting txq to -1 and
using valid txq=<0 to n-1> allows the tx path to use the value
of sk_tx_queue_mapping directly instead of subtracting 1 on every
tx.

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