summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2014-07-01 21:32:27 -0700
committerDavid S. Miller <davem@davemloft.net>2014-07-07 21:14:21 -0700
commit0e001614e849b68cff94cda8db8b550569d3dba6 (patch)
tree270c7f51c6bbe62c662793729199afdcb4304759 /include/linux/skbuff.h
parentb73c3d0e4f0e1961e15bec18720e48aabebe2109 (diff)
downloadop-kernel-dev-0e001614e849b68cff94cda8db8b550569d3dba6.zip
op-kernel-dev-0e001614e849b68cff94cda8db8b550569d3dba6.tar.gz
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/skbuff.h')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index ec89301..b297af7 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -3005,7 +3005,7 @@ static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
return skb->queue_mapping != 0;
}
-u16 __skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb,
+u16 __skb_tx_hash(const struct net_device *dev, struct sk_buff *skb,
unsigned int num_tx_queues);
static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
OpenPOWER on IntegriCloud