linux-loongson/drivers/net/ethernet/mellanox/mlxsw
Ido Schimmel f604d3aaf6 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: ca360db4b8 ("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>
2025-08-15 10:44:48 -07:00
..
cmd.h
core_acl_flex_actions.c
core_acl_flex_actions.h
core_acl_flex_keys.c mlxsw: spectrum_acl_flex_keys: Constify struct mlxsw_afk_element_inst 2024-10-07 16:35:03 -07:00
core_acl_flex_keys.h mlxsw: spectrum_acl_flex_keys: Constify struct mlxsw_afk_element_inst 2024-10-07 16:35:03 -07:00
core_env.c mlxsw: Implement ethtool operation to write to a transceiver module EEPROM 2024-06-28 10:48:22 +01:00
core_env.h mlxsw: Implement ethtool operation to write to a transceiver module EEPROM 2024-06-28 10:48:22 +01:00
core_hwmon.c
core_linecard_dev.c
core_linecards.c mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file 2024-07-04 07:34:42 -07:00
core_thermal.c mlxsw: core_thermal: Constify struct thermal_zone_device_ops 2025-05-27 17:31:42 -07:00
core.c mlxsw: Do not store Tx header length as driver parameter 2025-01-17 19:58:00 -08:00
core.h mlxsw: Do not store Tx header length as driver parameter 2025-01-17 19:58:00 -08:00
emad.h
i2c.c mlxsw: Add mlxsw_txhdr_info structure 2025-01-17 19:57:59 -08:00
i2c.h
item.h mlxsw: Warn about invalid accesses to array fields 2024-07-09 18:46:44 -07:00
Kconfig mlxsw: pci: Initialize page pool per CQ 2024-06-19 17:38:10 -07:00
Makefile
minimal.c mlxsw: Implement ethtool operation to write to a transceiver module EEPROM 2024-06-28 10:48:22 +01:00
pci_hw.h mlxsw: Enable Tx checksum offload 2025-02-10 19:10:51 -08:00
pci.c net: Use netif_threaded_enable instead of netif_set_threaded in drivers 2025-07-24 18:34:55 -07:00
pci.h
port.h mlxsw: Adjust MTU value to hardware check 2024-06-14 19:30:34 -07:00
reg.h mlxsw: pci: Fix driver initialization with Spectrum-4 2024-06-21 14:30:32 +01:00
resources.h
spectrum1_acl_tcam.c
spectrum1_kvdl.c
spectrum1_mr_tcam.c
spectrum2_acl_tcam.c
spectrum2_kvdl.c
spectrum2_mr_tcam.c
spectrum_acl_atcam.c mlxsw: spectrum_acl: Fix ACL scale regression and firmware errors 2024-06-10 11:14:52 +01:00
spectrum_acl_bloom_filter.c mlxsw: spectrum_acl_bloom_filter: Workaround for some LLVM versions 2025-03-24 15:17:21 -07:00
spectrum_acl_ctcam.c
spectrum_acl_erp.c mlxsw: spectrum_acl_erp: Fix object nesting warning 2024-06-10 11:14:52 +01:00
spectrum_acl_flex_actions.c
spectrum_acl_flex_actions.h
spectrum_acl_flex_keys.c mlxsw: spectrum_acl_flex_keys: Use correct key block on Spectrum-4 2024-12-04 19:18:35 -08:00
spectrum_acl_tcam.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-25 12:41:37 -07:00
spectrum_acl_tcam.h mlxsw: spectrum_acl: Fix ACL scale regression and firmware errors 2024-06-10 11:14:52 +01:00
spectrum_acl.c
spectrum_buffers.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-06-27 12:14:11 -07:00
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c
spectrum_dpipe.c mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops 2024-06-05 10:24:57 +01:00
spectrum_dpipe.h
spectrum_ethtool.c net: ethtool: Adjust exactly ETH_GSTRING_LEN-long stats to use memcpy 2025-04-17 18:53:52 -07:00
spectrum_fid.c
spectrum_flow.c
spectrum_flower.c mlxsw: spectrum_flower: Do not allow mixing sample and mirror actions 2024-12-11 20:23:26 -08:00
spectrum_ipip.c mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address 2024-10-30 18:24:39 -07:00
spectrum_ipip.h
spectrum_kvdl.c
spectrum_matchall.c
spectrum_mr_tcam.c
spectrum_mr_tcam.h
spectrum_mr.c inet: ipmr: fix data-races 2025-01-15 15:07:23 -08:00
spectrum_mr.h
spectrum_nve_vxlan.c
spectrum_nve.c
spectrum_nve.h
spectrum_pgt.c
spectrum_policer.c
spectrum_port_range.c
spectrum_ptp.c time/timecounter: Fix the lie that struct cyclecounter is const 2025-07-01 15:38:25 +02:00
spectrum_ptp.h net: mlxsw: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-13 16:38:25 -07:00
spectrum_qdisc.c
spectrum_router.c mlxsw: spectrum_router: Fix use-after-free when deleting GRE net devices 2025-05-15 07:14:15 -07:00
spectrum_router.h mlxsw: spectrum_router: Remove unused functions 2025-02-04 14:05:53 -08:00
spectrum_span.c net: Fix netns for ip_tunnel_init_flow() 2024-12-23 10:04:41 -08:00
spectrum_span.h
spectrum_switchdev.c mlxsw: Add VXLAN bridge ports to same hardware domain as physical bridge ports 2025-03-24 15:09:31 -07:00
spectrum_switchdev.h
spectrum_trap.c mlxsw: Trap ARP packets at layer 2 instead of layer 3 2025-03-24 15:09:30 -07:00
spectrum_trap.h
spectrum.c mlxsw: spectrum: Forward packets with an IPv4 link-local source IP 2025-08-15 10:44:48 -07:00
spectrum.h net: mlxsw: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-13 16:38:25 -07:00
trap.h mlxsw: spectrum: Forward packets with an IPv4 link-local source IP 2025-08-15 10:44:48 -07:00
txheader.h mlxsw: Define Tx header fields in txheader.h 2025-01-17 19:58:00 -08:00