]> git.baikalelectronics.ru Git - kernel.git/commit
net: Optimize skb_tx_hash() by eliminating a comparison
authorKrishna Kumar <krkumar2@in.ibm.com>
Thu, 19 Feb 2009 01:55:02 +0000 (17:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Feb 2009 01:55:02 +0000 (17:55 -0800)
commit0489a25b45965f5c82c59b6ac8f579ae384cba67
tree4e5ad54f7445631ac2ec5750dbe245e6c26a140c
parent3c2a4d5120ef431695d3018623c7a8fee56e1f80
net: Optimize skb_tx_hash() by eliminating a comparison

Optimize skb_tx_hash() by eliminating a comparison that executes for
every packet. skb_tx_hashrnd initialization is moved to a later part of
the startup sequence, namely after the "random" driver is initialized.

Rebooted the system three times and verified that the code generates
different random numbers each time.

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