git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
accc5b4
)
net: Avoid modulus in skb_tx_hash() for forwarding case.
author
David S. Miller
<davem@davemloft.net>
Sun, 3 May 2009 21:43:10 +0000
(14:43 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 May 2009 21:43:10 +0000
(14:43 -0700)
Based almost entirely upon a patch by Eric Dumazet.
The common case is to have num-tx-queues <= num_rx_queues
and even if num_tx_queues is larger it will not be significantly
larger.
Therefore, a subtraction loop is always going to be faster than
modulus.
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found