mac80211: move include statements for skb_get_hash_perturb() to prevent issues with newer kernels

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-07-03 18:13:11 +02:00
parent b174832159
commit f226d5879e

View file

@ -1,19 +1,13 @@
--- a/backport-include/linux/skbuff.h --- a/backport-include/linux/skbuff.h
+++ b/backport-include/linux/skbuff.h +++ b/backport-include/linux/skbuff.h
@@ -1,6 +1,8 @@ @@ -305,6 +305,19 @@ static inline void skb_free_frag(void *d
#ifndef __BACKPORT_SKBUFF_H
#define __BACKPORT_SKBUFF_H
#include_next <linux/skbuff.h>
+#include <net/flow_keys.h>
+#include <linux/jhash.h>
#include <linux/version.h>
#include <generated/utsrelease.h>
@@ -305,6 +307,16 @@ static inline void skb_free_frag(void *d
{ {
put_page(virt_to_head_page(data)); put_page(virt_to_head_page(data));
} }
+ +
+#include <net/flow_keys.h>
+#include <linux/jhash.h>
+
+static inline u32 skb_get_hash_perturb(struct sk_buff *skb, u32 key) +static inline u32 skb_get_hash_perturb(struct sk_buff *skb, u32 key)
+{ +{
+ struct flow_keys keys; + struct flow_keys keys;