]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlxsw: spectrum: Forward packets with an IPv4 link-local source IP
authorIdo Schimmel <idosch@nvidia.com>
Thu, 14 Aug 2025 13:06:40 +0000 (15:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 17:44:48 +0000 (10:44 -0700)
commitf604d3aaf64ff0d90cc875295474d3abf4155629
treeac0dba44cdc93463ffa12b7e95b56c18da5a2635
parent065c31f2c6915b38f45b1c817b31f41f62eaa774
mlxsw: spectrum: Forward packets with an IPv4 link-local source IP

By default, the device does 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 by instructing the device to forward such packets instead of
dropping them.

Fixes: ca360db4b825 ("mlxsw: spectrum: Disable DIP_LINK_LOCAL check in hardware pipeline")
Reported-by: Zoey Mertes <zoey@cloudflare.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/6721e6b2c96feb80269e72ce8d0b426e2f32d99c.1755174341.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/trap.h