net: Add utility function to copy skb hash
Adds skb_copy_hash to copy rxhash and l4_rxhash from one skb to another. 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
09323cc479
commit
3df7a74e79
@@ -712,9 +712,8 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
|
||||
new->inner_network_header = old->inner_network_header;
|
||||
new->inner_mac_header = old->inner_mac_header;
|
||||
skb_dst_copy(new, old);
|
||||
new->rxhash = old->rxhash;
|
||||
skb_copy_hash(new, old);
|
||||
new->ooo_okay = old->ooo_okay;
|
||||
new->l4_rxhash = old->l4_rxhash;
|
||||
new->no_fcs = old->no_fcs;
|
||||
new->encapsulation = old->encapsulation;
|
||||
#ifdef CONFIG_XFRM
|
||||
|
Reference in New Issue
Block a user