BPF List
 help / color / mirror / Atom feed
* [PATCH net-next 0/1] net: neighbour: skip the stale dst lookup for a redirected skb
@ 2026-11-20 15:42 Jamal Hadi Salim
  2026-11-20 15:42 ` [PATCH net-next 1/1] " Jamal Hadi Salim
  2026-11-20 15:47 ` [PATCH net-next 0/1] " netdev-bot+sinfo
  0 siblings, 2 replies; 5+ messages in thread
From: Jamal Hadi Salim @ 2026-11-20 15:42 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, bpf, Alexei Starovoitov, Jiri Pirko,
	Victor Nogueira

This replaces the four-patch series posted as [PATCH net-next v4 0/4]
"net: drop the stale dst when steering to another device":

https://lore.kernel.org/netdev/CORE-9NOG.v4.r0.20261116135311@mojatatu.com/

Patches 2/4, 3/4 and 4/4 are withdrawn, and 1/4 is split out into a
separate posting against net:

  * 2/4, 3/4 and 4/4 dropped the stale dst at each producer that steers a
    packet to another device. Alexei Starovoitov pointed out that a route
    for one device is a normal thing to find on a frame that leaves
    another one, and that the xfrm, tunnel and lwtstate consumers further
    down still need it, so they are gone.

  * 1/4 is a regression of the xfrm interface helper, so it goes to net
    on its own.

What is left is the drain guard Alexei proposed in his review of v4:

https://lore.kernel.org/netdev/DMX7RM93TMGR.AXFN4YJ55REF@gmail.com/

It is adopted as written: neigh_update_process_arp_queue() skips the
re-lookup of the neighbour from the skb's dst when skb->dev is already
neigh->dev. The parking neighbour is the top-level one in that case and
can reinject the frame itself; a dst that is a route via another device,
which is the sch_teql shape, still takes the lookup.


Jamal Hadi Salim (1):
  net: neighbour: skip the stale dst lookup for a redirected skb

 net/core/neighbour.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-20 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 15:42 [PATCH net-next 0/1] net: neighbour: skip the stale dst lookup for a redirected skb Jamal Hadi Salim
2026-11-20 15:42 ` [PATCH net-next 1/1] " Jamal Hadi Salim
2026-11-20 19:06   ` Alexei Starovoitov
2026-11-20 15:47 ` [PATCH net-next 0/1] " netdev-bot+sinfo
2026-11-20 16:05   ` Jamal Hadi Salim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox