All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] mlxsw: spectrum: Forward packets with an IPv4 link-local source IP
@ 2025-08-14 13:06 Petr Machata
  2025-08-14 13:06 ` [PATCH net v2 1/2] " Petr Machata
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Petr Machata @ 2025-08-14 13:06 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Andrew Lunn, netdev
  Cc: Simon Horman, Ido Schimmel, Petr Machata, Jiri Pirko, mlxsw

By default, Spectrum devices do not forward IPv4 packets with a link-local
source IP (i.e., 169.254.0.0/16). This behavior does not align with the
kernel which does forward them. Fix the issue and add a selftest.

v2:
- Patch #2: disable rp_filter to prevent packets from getting dropped
  on ingress.

Ido Schimmel (2):
  mlxsw: spectrum: Forward packets with an IPv4 link-local source IP
  selftest: forwarding: router: Add a test case for IPv4 link-local
    source IP

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  2 ++
 drivers/net/ethernet/mellanox/mlxsw/trap.h    |  1 +
 .../selftests/net/forwarding/router.sh        | 29 +++++++++++++++++++
 3 files changed, 32 insertions(+)

-- 
2.49.0


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

end of thread, other threads:[~2025-08-15 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 13:06 [PATCH net v2 0/2] mlxsw: spectrum: Forward packets with an IPv4 link-local source IP Petr Machata
2025-08-14 13:06 ` [PATCH net v2 1/2] " Petr Machata
2025-08-14 13:06 ` [PATCH net v2 2/2] selftest: forwarding: router: Add a test case for " Petr Machata
2025-08-15 18:09 ` [PATCH net v2 0/2] mlxsw: spectrum: Forward packets with an " 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.