diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 10 | ||||
-rw-r--r-- | include/linux/skbuff.h | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d31bc3c94717..445e6825f8eb 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1747,6 +1747,16 @@ static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) | |||
1747 | __netif_schedule(txq->qdisc); | 1747 | __netif_schedule(txq->qdisc); |
1748 | } | 1748 | } |
1749 | 1749 | ||
1750 | /* | ||
1751 | * Returns a Tx hash for the given packet when dev->real_num_tx_queues is used | ||
1752 | * as a distribution range limit for the returned value. | ||
1753 | */ | ||
1754 | static inline u16 skb_tx_hash(const struct net_device *dev, | ||
1755 | const struct sk_buff *skb) | ||
1756 | { | ||
1757 | return __skb_tx_hash(dev, skb, dev->real_num_tx_queues); | ||
1758 | } | ||
1759 | |||
1750 | /** | 1760 | /** |
1751 | * netif_is_multiqueue - test if device has multiple transmit queues | 1761 | * netif_is_multiqueue - test if device has multiple transmit queues |
1752 | * @dev: network device | 1762 | * @dev: network device |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 19f37a6ee6c4..4c4bec6316d9 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2165,8 +2165,9 @@ static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) | |||
2165 | return skb->queue_mapping != 0; | 2165 | return skb->queue_mapping != 0; |
2166 | } | 2166 | } |
2167 | 2167 | ||
2168 | extern u16 skb_tx_hash(const struct net_device *dev, | 2168 | extern u16 __skb_tx_hash(const struct net_device *dev, |
2169 | const struct sk_buff *skb); | 2169 | const struct sk_buff *skb, |
2170 | unsigned int num_tx_queues); | ||
2170 | 2171 | ||
2171 | #ifdef CONFIG_XFRM | 2172 | #ifdef CONFIG_XFRM |
2172 | static inline struct sec_path *skb_sec_path(struct sk_buff *skb) | 2173 | static inline struct sec_path *skb_sec_path(struct sk_buff *skb) |