drop_monitor: convert some kfree_skb call sites to consume_skb
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 20 Jul 2010 06:45:56 +0000 (06:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 20:28:05 +0000 (13:28 -0700)
commit70d4bf6d467a330ccc947df9b2608e329d9e7708
tree477dff26ac865f785e9197065e4807daeb89958c
parent4b706372f18de53970e4c6887a96459590fef80a
drop_monitor: convert some kfree_skb call sites to consume_skb

Convert a few calls from kfree_skb to consume_skb

Noticed while I was working on dropwatch that I was detecting lots of internal
skb drops in several places.  While some are legitimate, several were not,
freeing skbs that were at the end of their life, rather than being discarded due
to an error.  This patch converts those calls sites from using kfree_skb to
consume_skb, which quiets the in-kernel drop_monitor code from detecting them as
drops.  Tested successfully by myself

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/audit.c
net/netlink/af_netlink.c
net/unix/af_unix.c