linux-xiaomi-chiron/tools/testing/selftests/drivers/net/mlxsw
Ido Schimmel 5e6242151d selftests: mlxsw: vxlan_flooding_ipv6: Prevent flooding of unwanted packets
The test verifies that packets are correctly flooded by the bridge and
the VXLAN device by matching on the encapsulated packets at the other
end. However, if packets other than those generated by the test also
ingress the bridge (e.g., MLD packets), they will be flooded as well and
interfere with the expected count.

Make the test more robust by making sure that only the packets generated
by the test can ingress the bridge. Drop all the rest using tc filters
on the egress of 'br0' and 'h1'.

In the software data path, the problem can be solved by matching on the
inner destination MAC or dropping unwanted packets at the egress of the
VXLAN device, but this is not currently supported by mlxsw.

Fixes: d01724dd2a ("selftests: mlxsw: spectrum-2: Add a test for VxLAN flooding with IPv6")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-20 15:04:27 +01:00
..
spectrum selftests: mlxsw: resource_scale: Fix return value 2022-03-03 08:14:01 -08:00
spectrum-2 selftests: mlxsw: vxlan_flooding_ipv6: Prevent flooding of unwanted packets 2022-04-20 15:04:27 +01:00
blackhole_routes.sh selftests: mlxsw: Use busywait helper in blackhole routes test 2020-02-27 11:10:14 -08:00
devlink_trap.sh selftests: mlxsw: Add a test case for devlink-trap 2019-08-21 12:58:39 -07:00
devlink_trap_acl_drops.sh selftests: mlxsw: Do not hard code trap group name 2020-05-16 16:42:31 -07:00
devlink_trap_control.sh selftests: mlxsw: Add helpers for skipping selftests 2021-10-25 14:10:11 +01:00
devlink_trap_l2_drops.sh selftests: mlxsw: Do not hard code trap group name 2020-05-16 16:42:31 -07:00
devlink_trap_l3_drops.sh selftests: Clean forgotten resources as part of cleanup() 2021-06-08 14:39:07 -07:00
devlink_trap_l3_exceptions.sh selftests: Clean forgotten resources as part of cleanup() 2021-06-08 14:39:07 -07:00
devlink_trap_policer.sh selftests: mlxsw: Reduce test run time 2021-10-25 14:10:11 +01:00
devlink_trap_tunnel_ipip.sh selftests: mlxsw: devlink_trap_tunnel_ipip: Send a full-length key 2021-10-08 16:40:59 +01:00
devlink_trap_tunnel_vxlan.sh selftests: mlxsw: devlink_trap_tunnel_vxlan: Fix 'decap_error' case 2021-12-23 11:24:01 +00:00
devlink_trap_tunnel_vxlan_ipv6.sh selftests: mlxsw: Add test for VxLAN related traps for IPv6 2021-12-23 11:24:01 +00:00
ethtool_lanes.sh net: selftests: Add lanes setting test 2021-02-03 18:37:29 -08:00
extack.sh selftests: mlxsw: extack: Test creation of multiple VLAN-aware bridges 2020-02-17 14:42:53 -08:00
fib.sh selftests: Extend fib tests to run with and without flags notifications 2021-02-02 17:45:59 -08:00
fib_offload.sh selftests: mlxsw: Add a test for FIB offload indication 2019-06-18 09:45:37 -07:00
hw_stats_l3.sh selftests: mlxsw: hw_stats_l3: Add a new test 2022-03-15 14:00:51 +01:00
mirror_gre.sh selftests: mlxsw: Add mlxsw-specific test for mirror to gretap 2018-07-07 20:29:34 +09:00
mirror_gre_scale.sh selftests: mlxsw: Fix mausezahn invocation in ERSPAN scale test 2021-04-23 14:01:28 -07:00
mlxsw_lib.sh selftests: mlxsw: Add helpers for skipping selftests 2021-10-25 14:10:11 +01:00
one_armed_router.sh selftests: mlxsw: Add one-armed router test 2018-12-04 08:36:36 -08:00
port_scale.sh selftests: mlxsw: Make the unsplit array global in port_scale test 2021-05-17 15:15:46 -07:00
q_in_q_veto.sh selftests: forwarding: Add QinQ veto testing 2020-12-01 15:21:13 -08:00
qos_defprio.sh selftests: mlxsw: qos_defprio: Use until_counter_is 2020-03-03 17:03:52 -08:00
qos_dscp_bridge.sh selftests: Clean forgotten resources as part of cleanup() 2021-06-08 14:39:07 -07:00
qos_dscp_router.sh selftests: mlxsw: qos_dscp_router: Test no DSCP rewrite after pedit 2020-03-26 11:55:40 -07:00
qos_ets_strict.sh selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set 2020-09-30 14:06:54 -07:00
qos_headroom.sh selftests: mlxsw: qos_headroom: Convert to iproute2 dcb 2021-05-17 15:15:46 -07:00
qos_lib.sh selftests: mlxsw: qos_lib: Drop __mlnx_qos 2021-05-17 15:15:46 -07:00
qos_mc_aware.sh selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set 2020-09-30 14:06:54 -07:00
qos_pfc.sh selftests: mlxsw: qos_pfc: Convert to iproute2 dcb 2021-05-17 15:15:46 -07:00
rif_mac_profile_scale.sh selftests: mlxsw: Add a scale test for RIF MAC profiles 2021-10-26 13:35:58 +01:00
rif_mac_profiles.sh selftests: mlxsw: Add forwarding test for RIF MAC profiles 2021-10-26 13:35:58 +01:00
rif_mac_profiles_occ.sh selftests: mlxsw: Add a test case for MAC profiles consolidation 2021-12-14 12:56:10 +00:00
router_scale.sh selftests: router_scale: Do not count failed routes 2021-06-08 14:39:07 -07:00
rtnetlink.sh selftests: mlxsw: Remove deprecated test cases 2021-10-26 13:35:58 +01:00
sch_ets.sh selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set 2020-09-30 14:06:54 -07:00
sch_offload.sh selftests: mlxsw: Test offloadability of root TBF 2021-10-28 19:47:49 -07:00
sch_red_core.sh selftests: mlxsw: Add helpers for skipping selftests 2021-10-25 14:10:11 +01:00
sch_red_ets.sh selftests: mlxsw: RED: Test per-TC ECN counters 2021-10-13 17:47:18 -07:00
sch_red_prio.sh selftests: mlxsw: Add a RED selftest 2020-02-27 11:10:14 -08:00
sch_red_root.sh selftests: mlxsw: RED: Test per-TC ECN counters 2021-10-13 17:47:18 -07:00
sch_tbf_ets.sh selftests: mlxsw: Add a TBF selftest 2020-01-25 10:56:31 +01:00
sch_tbf_prio.sh selftests: mlxsw: Add a TBF selftest 2020-01-25 10:56:31 +01:00
sch_tbf_root.sh selftests: mlxsw: Add a TBF selftest 2020-01-25 10:56:31 +01:00
sharedbuffer.sh mlxsw: spectrum: Reduce priority of locally delivered packets 2020-05-26 20:33:58 -07:00
sharedbuffer_configuration.py tweewide: Fix most Shebang lines 2020-12-08 23:30:04 +09:00
tc_action_hw_stats.sh selftests: mlxsw: Add tc action hw_stats tests 2020-03-18 16:46:19 -07:00
tc_flower_scale.sh selftests: mlxsw: Remove a redundant if statement in tc_flower_scale test 2021-04-23 14:01:28 -07:00
tc_police_occ.sh selftests: mlxsw: Test policers' occupancy 2020-07-15 18:10:00 -07:00
tc_police_scale.sh selftests: mlxsw: tc_police_scale: Make test more robust 2022-03-03 08:14:01 -08:00
tc_restrictions.sh selftests: mlxsw: Add helpers for skipping selftests 2021-10-25 14:10:11 +01:00
tc_sample.sh selftests: mlxsw: Add helpers for skipping selftests 2021-10-25 14:10:11 +01:00
vxlan.sh selftests: mlxsw: vxlan: Make the test more flexible for future use 2021-12-23 11:24:00 +00:00
vxlan_fdb_veto.sh selftests: mlxsw: vxlan_fdb_veto: Make the test more flexible for future use 2021-12-23 11:24:00 +00:00
vxlan_fdb_veto_ipv6.sh selftests: mlxsw: Add VxLAN FDB veto test for IPv6 2021-12-23 11:24:01 +00:00
vxlan_flooding.sh selftests: mlxsw: vxlan_flooding: Prevent flooding of unwanted packets 2022-04-20 15:04:27 +01:00
vxlan_ipv6.sh selftests: mlxsw: Add VxLAN configuration test for IPv6 2021-12-23 11:24:00 +00:00