]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Take the distribution range definition out of skb_tx_hash()
authorVladislav Zolotarov <vladz@broadcom.com>
Mon, 13 Dec 2010 06:27:10 +0000 (06:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2010 21:15:53 +0000 (13:15 -0800)
commit70ae6bb00437e13c5cdb339332f425ff104f85ba
treee51c231b29d8e285acb8196b6b893c718febd2b1
parenteb51fe96687c1c975138cda3a7ba20c24c8411f7
bnx2x: Take the distribution range definition out of skb_tx_hash()

Move the calcualation of the Tx hash for a given hash range into a separate
function and define the skb_tx_hash(), which calculates a Tx hash for a
[0; dev->real_num_tx_queues - 1] hash values range, using this
function (__skb_tx_hash()).

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/linux/skbuff.h
net/core/dev.c