Skip to contentSkip to conversation

Remove unused function - skb_frag_add_head

PATCH In review Krishna Kumar 2 participants 2 messages Jan 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused function - skb_frag_add_head

From: Krishna Kumar <[email protected]>

Remove unused function - skb_frag_add_head

---
 include/linux/skbuff.h |    6 ------
 1 file changed, 6 deletions(-)
include/linux/skbuff.h +0 -6
diff -ruNp org/include/linux/skbuff.h new/include/linux/skbuff.h
@@ -1728,12 +1728,6 @@ static inline void skb_frag_list_init(st
 	skb_shinfo(skb)->frag_list = NULL;
 }
 
-static inline void skb_frag_add_head(struct sk_buff *skb, struct sk_buff *frag)
-{
-	frag->next = skb_shinfo(skb)->frag_list;
-	skb_shinfo(skb)->frag_list = frag;
-}
-
 #define skb_walk_frags(skb, iter)	\
 	for (iter = skb_shinfo(skb)->frag_list; iter; iter = iter->next)
 
maintainer
#1 lore raw

From: Krishna Kumar <[email protected]>
Date: Fri, 15 Jan 2010 11:02:05 +0530

Quoted 5 lines

From: Krishna Kumar <[email protected]>

Remove unused function - skb_frag_add_head

It rounds out the abstractions for accessing the fragment list.

All uses of the frag list need to be converted to these things so that we can finally change sk_buff to use struct list_head instead of a by-hand linked list.

So I'm not applying this.