[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250226183437.1457318-1-edumazet@google.com>
Date: Wed, 26 Feb 2025 18:34:35 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>, netdev@...r.kernel.org, eric.dumazet@...il.com,
David Ahern <dsahern@...nel.org>, Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next 0/2] inet: ping: remove extra skb_clone()/consume_skb()
First patch in the series moves ICMP_EXT_ECHOREPLY handling in icmp_rcv()
to prepare the second patch.
The second patch removes one skb_clone()/consume_skb() pair
when processing ICMP_EXT_REPLY packets. Some people
use hundreds of "ping -fq ..." to stress hosts :)
Eric Dumazet (2):
ipv4: icmp: do not process ICMP_EXT_ECHOREPLY for broadcast/multicast
addresses
inet: ping: avoid skb_clone() dance in ping_rcv()
net/ipv4/icmp.c | 33 +++++++++++++++++----------------
net/ipv4/ping.c | 20 +++++---------------
net/ipv6/icmp.c | 7 ++-----
3 files changed, 24 insertions(+), 36 deletions(-)
--
2.48.1.658.g4767266eb4-goog
Powered by blists - more mailing lists