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>
This commit is contained in:
committed by
David S. Miller
parent
d33e455337
commit
a3d22a68d7
@@ -2165,8 +2165,9 @@ static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
|
||||
return skb->queue_mapping != 0;
|
||||
}
|
||||
|
||||
extern u16 skb_tx_hash(const struct net_device *dev,
|
||||
const struct sk_buff *skb);
|
||||
extern u16 __skb_tx_hash(const struct net_device *dev,
|
||||
const struct sk_buff *skb,
|
||||
unsigned int num_tx_queues);
|
||||
|
||||
#ifdef CONFIG_XFRM
|
||||
static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
|
||||
|
Reference in New Issue
Block a user