diff options
author | Yan Zhai <yan@cloudflare.com> | 2024-06-17 20:09:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-06-19 13:44:22 +0200 |
commit | 7467de17635fb9d240987a0b9574fb2283a53b73 (patch) | |
tree | 7bb48567cd5b5ee1f47d69175119c03c82e36a8d /net/ipv4 | |
parent | net: introduce sk_skb_reason_drop function (diff) | |
download | linux-7467de17635fb9d240987a0b9574fb2283a53b73.tar.xz linux-7467de17635fb9d240987a0b9574fb2283a53b73.zip |
ping: use sk_skb_reason_drop to free rx packets
Replace kfree_skb_reason with sk_skb_reason_drop and pass the receiving
socket to the tracepoint.
Signed-off-by: Yan Zhai <yan@cloudflare.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 823306487a82..619ddc087957 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -946,7 +946,7 @@ static enum skb_drop_reason __ping_queue_rcv_skb(struct sock *sk, pr_debug("ping_queue_rcv_skb(sk=%p,sk->num=%d,skb=%p)\n", inet_sk(sk), inet_sk(sk)->inet_num, skb); if (sock_queue_rcv_skb_reason(sk, skb, &reason) < 0) { - kfree_skb_reason(skb, reason); + sk_skb_reason_drop(sk, skb, reason); pr_debug("ping_queue_rcv_skb -> failed\n"); return reason; } |