Skip to content

inet: ping: remove extra skb_clone()/consume_skb()

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ipv4: icmp: do not process ICMP_EXT_ECHOREPLY for broadcast/multicast addressesnet/ipv4/icmp.c+16 -161 replyApplied
2/2inet: ping: avoid skb_clone() dance in ping_rcv()net/ipv4/icmp.c net/ipv4/ping.c net/ipv6/icmp.c+10 -221 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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(-)
Signature · 1 line
2.48.1.658.g4767266eb4-goog