diff options
author | Tom Herbert <therbert@google.com> | 2014-07-02 08:32:27 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-08 08:14:21 +0400 |
commit | 0e001614e849b68cff94cda8db8b550569d3dba6 (patch) | |
tree | 270c7f51c6bbe62c662793729199afdcb4304759 /include/linux/netdevice.h | |
parent | b73c3d0e4f0e1961e15bec18720e48aabebe2109 (diff) | |
download | linux-0e001614e849b68cff94cda8db8b550569d3dba6.tar.xz |
net: Call skb_get_hash in get_xps_queue and __skb_tx_hash
Call standard function to get a packet hash instead of taking this from
skb->sk->sk_hash or only using skb->protocol.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 66f9a04ec270..8b43a28ee0bc 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2486,7 +2486,7 @@ static inline int netif_set_xps_queue(struct net_device *dev, * as a distribution range limit for the returned value. */ static inline u16 skb_tx_hash(const struct net_device *dev, - const struct sk_buff *skb) + struct sk_buff *skb) { return __skb_tx_hash(dev, skb, dev->real_num_tx_queues); } |