net: Change skb_get_rxhash to skb_get_hash
Changing name of function as part of making the hash in skbuff to be generic property, not just for receive path. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1aee6cc2a5
commit
3958afa1b2
@@ -3006,7 +3006,7 @@ static int get_rps_cpu(struct net_device *dev, struct sk_buff *skb,
|
||||
}
|
||||
|
||||
skb_reset_network_header(skb);
|
||||
if (!skb_get_rxhash(skb))
|
||||
if (!skb_get_hash(skb))
|
||||
goto done;
|
||||
|
||||
flow_table = rcu_dereference(rxqueue->rps_flow_table);
|
||||
@@ -3151,7 +3151,7 @@ static bool skb_flow_limit(struct sk_buff *skb, unsigned int qlen)
|
||||
rcu_read_lock();
|
||||
fl = rcu_dereference(sd->flow_limit);
|
||||
if (fl) {
|
||||
new_flow = skb_get_rxhash(skb) & (fl->num_buckets - 1);
|
||||
new_flow = skb_get_hash(skb) & (fl->num_buckets - 1);
|
||||
old_flow = fl->history[fl->history_head];
|
||||
fl->history[fl->history_head] = new_flow;
|
||||
|
||||
|
Reference in New Issue
Block a user