diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2018-04-27 14:06:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-29 22:01:33 -0400 |
commit | 1b837d489e06a5289753ddbee99cfbc26d251d6d (patch) | |
tree | 79b017d20c0cc9ad084b4834ae026288b7dd9e1e /include/linux/netdevice.h | |
parent | b86629ebd5447c1e263d89be765ba6fd747c5e4d (diff) | |
download | op-kernel-dev-1b837d489e06a5289753ddbee99cfbc26d251d6d.zip op-kernel-dev-1b837d489e06a5289753ddbee99cfbc26d251d6d.tar.gz |
net: Revoke export for __skb_tx_hash, update it to just be static skb_tx_hash
I am dropping the export of __skb_tx_hash as after my patches nobody is
using it outside of the net/core/dev.c file. In addition I am renaming and
repurposing it to just be a static declaration of skb_tx_hash since that
was the only user for it at this point. By doing this the compiler can
inline it into __netdev_pick_tx as that will improve performance.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 366c328..82f5a9a 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3213,19 +3213,6 @@ static inline int netif_set_xps_queue(struct net_device *dev, } #endif -u16 __skb_tx_hash(const struct net_device *dev, struct sk_buff *skb, - unsigned int num_tx_queues); - -/* - * Returns a Tx hash for the given packet when dev->real_num_tx_queues is used - * as a distribution range limit for the returned value. - */ -static inline u16 skb_tx_hash(const struct net_device *dev, - struct sk_buff *skb) -{ - return __skb_tx_hash(dev, skb, dev->real_num_tx_queues); -} - /** * netif_is_multiqueue - test if device has multiple transmit queues * @dev: network device |