flow_dissector: __skb_get_hash_symmetric arg can be const
authorFlorian Westphal <fw@strlen.de>
Wed, 26 Oct 2016 16:49:46 +0000 (18:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 19:10:21 +0000 (15:10 -0400)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/flow_dissector.c

index 601258f6e62153f3814e2a38e4c21ad97fc7ee87..663fda2887f748255cb42b495ce13f3a989070b4 100644 (file)
@@ -1086,7 +1086,7 @@ __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4)
 }
 
 void __skb_get_hash(struct sk_buff *skb);
-u32 __skb_get_hash_symmetric(struct sk_buff *skb);
+u32 __skb_get_hash_symmetric(const struct sk_buff *skb);
 u32 skb_get_poff(const struct sk_buff *skb);
 u32 __skb_get_poff(const struct sk_buff *skb, void *data,
                   const struct flow_keys *keys, int hlen);
index 1a7b80f733764770c3ac44853314eec2837c0abd..0cc607d05fc8eb06448f10d1463dc3fcfb3f7448 100644 (file)
@@ -723,7 +723,7 @@ EXPORT_SYMBOL(make_flow_keys_digest);
 
 static struct flow_dissector flow_keys_dissector_symmetric __read_mostly;
 
-u32 __skb_get_hash_symmetric(struct sk_buff *skb)
+u32 __skb_get_hash_symmetric(const struct sk_buff *skb)
 {
        struct flow_keys keys;