net: skb_free_datagram_locked() doesnt drop all packets
authorEric Dumazet <edumazet@google.com>
Wed, 27 Jun 2012 00:23:44 +0000 (00:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 22:40:57 +0000 (15:40 -0700)
commit22911fc581f6a241e2897a7a8603e97344a6ec82
tree6ee795b8a163a584157c1eedd7630774f120b829
parent4c3af034fafeb7269176bf1310c9bcff0b9fd9bb
net: skb_free_datagram_locked() doesnt drop all packets

dropwatch wrongly diagnose all received UDP packets as drops.

This patch removes trace_kfree_skb() done in skb_free_datagram_locked().

Locations calling skb_free_datagram_locked() should do it on their own.

As a result, drops are accounted on the right function.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/datagram.c
net/ipv4/udp.c
net/ipv6/udp.c
net/sunrpc/svcsock.c