flow_dissector: remove unused functions
Subsystems (2)
PATCH 1/1 flow_dissector: remove unused functions
They are introduced by commit f70ea018da06
("net: Add functions to get skb->hash based on flow structures") but never gets used in tree.
Signed-off-by Cong Wang <[email protected]>
--- include/linux/skbuff.h | 16 ---------------- net/core/flow_dissector.c | 45 --------------------------------------------- 2 files changed, 61 deletions(-)
include/linux/skbuff.h +0 -16
@@ -1122,8 +1122,6 @@ static inline __u32 skb_get_hash(struct sk_buff *skb)return skb->hash; } -__u32 __skb_get_hash_flowi6 (struct sk_buff *skb,const struct flowi6 *fl6); -static inline __u32 skb_get_hash_flowi6 (struct sk_buff *skb,const struct flowi6 *fl6) {if (!skb->l4_hash && !skb->sw_hash) {
@@ -1136,20 +1134,6 @@ static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6return skb->hash; } -__u32 __skb_get_hash_flowi4 (struct sk_buff *skb,const struct flowi4 *fl); - -static inline __u32 skb_get_hash_flowi4 (struct sk_buff *skb,const struct flowi4 *fl4) -{ -if (!skb->l4_hash && !skb->sw_hash) { -struct flow_keys keys; -__u32 hash =__get_hash_from_flowi4 (fl4, &keys); - -__skb_set_sw_hash (skb, hash,flow_keys_have_l4 (&keys)); - } - -return skb->hash; -} -__u32 skb_get_hash_perturb (const struct sk_buff *skb,u32 perturb);static inline __u32 skb_get_hash_raw (const struct sk_buff *skb)
net/core/flow_dissector.c +0 -45
51 lines not on this page · raw message
Signature · 1 line
2.13.0
From: Cong Wang <[email protected]>
Date: Tue, 1 Aug 2017 13:18:09 -0700
Quoted 5 lines
They are introduced by commit
f70ea018da06
("net: Add functions to getskb->hashbased on flow structures") but never gets used in tree.Signed-off-by Cong Wang <[email protected]>
Yeah these can be reintroduced if we really end up needing them.
Applied, thanks.