aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h8
-rw-r--r--include/net/flow.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index eabfb810bc62..2738d355cdf9 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1029,9 +1029,9 @@ static inline __u32 skb_get_hash(struct sk_buff *skb)
1029 return skb->hash; 1029 return skb->hash;
1030} 1030}
1031 1031
1032__u32 __skb_get_hash_flowi6(struct sk_buff *skb, struct flowi6 *fl6); 1032__u32 __skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6);
1033 1033
1034static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, struct flowi6 *fl6) 1034static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6)
1035{ 1035{
1036 if (!skb->l4_hash && !skb->sw_hash) { 1036 if (!skb->l4_hash && !skb->sw_hash) {
1037 struct flow_keys keys; 1037 struct flow_keys keys;
@@ -1043,9 +1043,9 @@ static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, struct flowi6 *fl6)
1043 return skb->hash; 1043 return skb->hash;
1044} 1044}
1045 1045
1046__u32 __skb_get_hash_flowi4(struct sk_buff *skb, struct flowi4 *fl); 1046__u32 __skb_get_hash_flowi4(struct sk_buff *skb, const struct flowi4 *fl);
1047 1047
1048static inline __u32 skb_get_hash_flowi4(struct sk_buff *skb, struct flowi4 *fl4) 1048static inline __u32 skb_get_hash_flowi4(struct sk_buff *skb, const struct flowi4 *fl4)
1049{ 1049{
1050 if (!skb->l4_hash && !skb->sw_hash) { 1050 if (!skb->l4_hash && !skb->sw_hash) {
1051 struct flow_keys keys; 1051 struct flow_keys keys;
diff --git a/include/net/flow.h b/include/net/flow.h
index dafe97c3c048..acd6a096250e 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -244,18 +244,18 @@ void flow_cache_flush(struct net *net);
244void flow_cache_flush_deferred(struct net *net); 244void flow_cache_flush_deferred(struct net *net);
245extern atomic_t flow_cache_genid; 245extern atomic_t flow_cache_genid;
246 246
247__u32 __get_hash_from_flowi6(struct flowi6 *fl6, struct flow_keys *keys); 247__u32 __get_hash_from_flowi6(const struct flowi6 *fl6, struct flow_keys *keys);
248 248
249static inline __u32 get_hash_from_flowi6(struct flowi6 *fl6) 249static inline __u32 get_hash_from_flowi6(const struct flowi6 *fl6)
250{ 250{
251 struct flow_keys keys; 251 struct flow_keys keys;
252 252
253 return __get_hash_from_flowi6(fl6, &keys); 253 return __get_hash_from_flowi6(fl6, &keys);
254} 254}
255 255
256__u32 __get_hash_from_flowi4(struct flowi4 *fl4, struct flow_keys *keys); 256__u32 __get_hash_from_flowi4(const struct flowi4 *fl4, struct flow_keys *keys);
257 257
258static inline __u32 get_hash_from_flowi4(struct flowi4 *fl4) 258static inline __u32 get_hash_from_flowi4(const struct flowi4 *fl4)
259{ 259{
260 struct flow_keys keys; 260 struct flow_keys keys;
261 261