All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] inet: ping: remove extra skb_clone()/consume_skb()
@ 2025-02-26 18:34 Eric Dumazet
  2025-02-26 18:34 ` [PATCH net-next 1/2] ipv4: icmp: do not process ICMP_EXT_ECHOREPLY for broadcast/multicast addresses Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Eric Dumazet @ 2025-02-26 18:34 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, netdev, eric.dumazet, David Ahern, Eric Dumazet

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-28 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 18:34 [PATCH net-next 0/2] inet: ping: remove extra skb_clone()/consume_skb() Eric Dumazet
2025-02-26 18:34 ` [PATCH net-next 1/2] ipv4: icmp: do not process ICMP_EXT_ECHOREPLY for broadcast/multicast addresses Eric Dumazet
2025-02-28 16:28   ` David Ahern
2025-02-26 18:34 ` [PATCH net-next 2/2] inet: ping: avoid skb_clone() dance in ping_rcv() Eric Dumazet
2025-02-28 16:30   ` David Ahern
2025-02-28 22:50 ` [PATCH net-next 0/2] inet: ping: remove extra skb_clone()/consume_skb() patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.