Skip to contentSkip to conversation

flow_dissector: remove unused functions

PATCH Applied Cong Wang 2 participants 2 messages Aug 1, 2017 – Aug 2, 2017

Subsystems (2)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

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.

---
 include/linux/skbuff.h    | 16 ----------------
 net/core/flow_dissector.c | 45 ---------------------------------------------
 2 files changed, 61 deletions(-)
include/linux/skbuff.h +0 -16
index 4093552be1de..7090519c72dd 100644
@@ -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 flowi6
 	return 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
maintainer Applied
#1 lore raw

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 get skb->hash based on flow structures") but never gets used in tree.

Yeah these can be reintroduced if we really end up needing them.

Applied, thanks.