flow_dissector: __skb_get_hash_symmetric arg can be const
Subsystems (2)
PATCH 1/1 flow_dissector: __skb_get_hash_symmetric arg can be const
Signed-off-by Florian Westphal <[email protected]>
--- include/linux/skbuff.h | 2 +- net/core/flow_dissector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/skbuff.h +1 -1
@@ -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);
net/core/flow_dissector.c +1 -1
@@ -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;
Signature · 1 line
2.7.3
From: Florian Westphal <[email protected]>
Date: Wed, 26 Oct 2016 18:49:46 +0200
Quoted 1 line
Signed-off-by Florian Westphal <[email protected]>
Applied, thanks Florian.