icmp: Remove some spurious dropped packet profile hits from the ICMP path
commite3e3217029a35c579bf100998b43976d0b1cb8d7
authorRick Jones <rick.jones2@hp.com>
Mon, 17 Nov 2014 22:04:29 +0000 (17 14:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 20:28:28 +0000 (18 15:28 -0500)
treedc2e5073002588cea3bb600e9df7d8de00359d86
parent54aeba7f06323e04d59a6053ee3c6023079667b2
icmp: Remove some spurious dropped packet profile hits from the ICMP path

If icmp_rcv() has successfully processed the incoming ICMP datagram, we
should use consume_skb() rather than kfree_skb() because a hit on the likes
of perf -e skb:kfree_skb is not called-for.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ping.h
net/ipv4/icmp.c
net/ipv4/ping.c
net/ipv6/icmp.c