]> 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)
commit65712ee1e4336907e267aad59e15f3ffb7c96b44
treedc2e5073002588cea3bb600e9df7d8de00359d86
parent00b58e05036eb8a56ad74bf25d613f20ebd3f592
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