diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2009-03-11 05:49:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-13 15:09:28 -0400 |
commit | ead2ceb0ec9f85cff19c43b5cdb2f8a054484431 (patch) | |
tree | 258874b824bf241698d943daa9298bb18955e451 /include/linux | |
parent | 4893d39e865b2897bf9fcd329697d37032d853a1 (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.h | 4 |
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 | ||
423 | extern void kfree_skb(struct sk_buff *skb); | 423 | extern void kfree_skb(struct sk_buff *skb); |
424 | extern void consume_skb(struct sk_buff *skb); | ||
424 | extern void __kfree_skb(struct sk_buff *skb); | 425 | extern void __kfree_skb(struct sk_buff *skb); |
425 | extern struct sk_buff *__alloc_skb(unsigned int size, | 426 | extern 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, | |||
459 | extern int skb_cow_data(struct sk_buff *skb, int tailbits, | 460 | extern int skb_cow_data(struct sk_buff *skb, int tailbits, |
460 | struct sk_buff **trailer); | 461 | struct sk_buff **trailer); |
461 | extern int skb_pad(struct sk_buff *skb, int pad); | 462 | extern 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) | ||
463 | extern void skb_over_panic(struct sk_buff *skb, int len, | 465 | extern void skb_over_panic(struct sk_buff *skb, int len, |
464 | void *here); | 466 | void *here); |
465 | extern void skb_under_panic(struct sk_buff *skb, int len, | 467 | extern void skb_under_panic(struct sk_buff *skb, int len, |