]> git.baikalelectronics.ru Git - kernel.git/commit
icmp: Remove some spurious dropped packet profile hits from the ICMP path
authorRick Jones <rick.jones2@hp.com>
Mon, 17 Nov 2014 22:04:29 +0000 (14:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 20:28:28 +0000 (15:28 -0500)
commit3e40e2853bb082b0dcf68c8a907bcff5d83d4c1f
treedc2e5073002588cea3bb600e9df7d8de00359d86
parent01f2f080a66892658734898814161a3cc3e072cc
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