diff options
author | Rick Jones <rick.jones2@hp.com> | 2014-11-17 22:04:29 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-18 20:28:28 (GMT) |
commit | e3e3217029a35c579bf100998b43976d0b1cb8d7 (patch) | |
tree | dc2e5073002588cea3bb600e9df7d8de00359d86 /include | |
parent | 54aeba7f06323e04d59a6053ee3c6023079667b2 (diff) | |
download | linux-e3e3217029a35c579bf100998b43976d0b1cb8d7.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ping.h b/include/net/ping.h index 026479b..f074060 100644 --- a/include/net/ping.h +++ b/include/net/ping.h @@ -82,7 +82,7 @@ int ping_common_sendmsg(int family, struct msghdr *msg, size_t len, int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len); int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); -void ping_rcv(struct sk_buff *skb); +bool ping_rcv(struct sk_buff *skb); #ifdef CONFIG_PROC_FS struct ping_seq_afinfo { |