1 --- a/backport-include/linux/skbuff.h
2 +++ b/backport-include/linux/skbuff.h
3 @@ -305,6 +305,19 @@ static inline void skb_free_frag(void *d
5 put_page(virt_to_head_page(data));
8 +#include <net/flow_keys.h>
9 +#include <linux/jhash.h>
11 +static inline u32 skb_get_hash_perturb(struct sk_buff *skb, u32 key)
13 + struct flow_keys keys;
15 + skb_flow_dissect(skb, &keys);
16 + return jhash_3words((__force u32)keys.dst,
17 + (__force u32)keys.src ^ keys.ip_proto,
18 + (__force u32)keys.ports, key);
22 #endif /* __BACKPORT_SKBUFF_H */