diff options
| author | David S. Miller <[email protected]> | 2009-05-03 21:43:10 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2009-05-03 21:43:10 +0000 |
| commit | 513de11bba246b7a67df4c314d9fc936b6a75d0e (patch) | |
| tree | 773f446b9a609e771ff75ebd9bfacd4d3d52f99f /net/ipv4/tcp_output.c | |
| parent | ipv4: remove unused macro (FIB_RES_RESET) from ip_fib.h. (diff) | |
| download | kernel-513de11bba246b7a67df4c314d9fc936b6a75d0e.tar.gz kernel-513de11bba246b7a67df4c314d9fc936b6a75d0e.zip | |
net: Avoid modulus in skb_tx_hash() for forwarding case.
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 <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
