aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2009-03-11 05:49:55 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-13 15:09:28 -0400
commitead2ceb0ec9f85cff19c43b5cdb2f8a054484431 (patch)
tree258874b824bf241698d943daa9298bb18955e451 /include/linux
parent4893d39e865b2897bf9fcd329697d37032d853a1 (diff)
Network Drop Monitor: Adding kfree_skb_clean for non-drops and modifying end-of-line points for skbs
Signed-off-by: Neil Horman <nhorman@tuxdriver.com> include/linux/skbuff.h | 4 +++- net/core/datagram.c | 2 +- net/core/skbuff.c | 22 ++++++++++++++++++++++ net/ipv4/arp.c | 2 +- net/ipv4/udp.c | 2 +- net/packet/af_packet.c | 2 +- 6 files changed, 29 insertions(+), 5 deletions(-) Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/skbuff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 1f659e8c2b88..1fbab2ae613c 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -421,6 +421,7 @@ extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb,
421#endif 421#endif
422 422
423extern void kfree_skb(struct sk_buff *skb); 423extern void kfree_skb(struct sk_buff *skb);
424extern void consume_skb(struct sk_buff *skb);
424extern void __kfree_skb(struct sk_buff *skb); 425extern void __kfree_skb(struct sk_buff *skb);
425extern struct sk_buff *__alloc_skb(unsigned int size, 426extern struct sk_buff *__alloc_skb(unsigned int size,
426 gfp_t priority, int fclone, int node); 427 gfp_t priority, int fclone, int node);
@@ -459,7 +460,8 @@ extern int skb_to_sgvec(struct sk_buff *skb,
459extern int skb_cow_data(struct sk_buff *skb, int tailbits, 460extern int skb_cow_data(struct sk_buff *skb, int tailbits,
460 struct sk_buff **trailer); 461 struct sk_buff **trailer);
461extern int skb_pad(struct sk_buff *skb, int pad); 462extern int skb_pad(struct sk_buff *skb, int pad);
462#define dev_kfree_skb(a) kfree_skb(a) 463#define dev_kfree_skb(a) consume_skb(a)
464#define dev_consume_skb(a) kfree_skb_clean(a)
463extern void skb_over_panic(struct sk_buff *skb, int len, 465extern void skb_over_panic(struct sk_buff *skb, int len,
464 void *here); 466 void *here);
465extern void skb_under_panic(struct sk_buff *skb, int len, 467extern void skb_under_panic(struct sk_buff *skb, int len,