From: David S. Miller Date: Sun, 3 May 2009 21:43:10 +0000 (-0700) Subject: net: Avoid modulus in skb_tx_hash() for forwarding case. X-Git-Tag: v2.6.31-rc1~330^2~489 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513de11bba246b7a67df4c314d9fc936b6a75d0e;p=pandora-kernel.git 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 --- Reading git-diff-tree failed