mirror-linux/tools/testing/selftests/drivers/net/mlxsw
Ido Schimmel f520489e99 selftests: mlxsw: Fix test failure on Spectrum-4
Remove assumptions about shared buffer cell size and instead query the
cell size from devlink. Adjust the test to send small packets that fit
inside a single cell.

Tested on Spectrum-{1,2,3,4}.

Fixes: 4735402173 ("mlxsw: spectrum: Extend to support Spectrum-4 ASIC")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/f7dfbf3c4d1cb23838d9eb99bab09afaa320c4ca.1692268427.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-18 19:41:06 -07:00
..
spectrum selftests: mlxsw: spectrum: q_in_vni_veto: Disable IPv6 autogen on a bridge 2023-06-21 14:02:52 -07:00
spectrum-2 selftests: mlxsw: Move IPv6 decap_error test to shared directory 2022-12-08 18:46:32 -08:00
blackhole_routes.sh
devlink_linecard.sh selftests: mlxsw: Check line card info on activated line card 2022-07-26 13:56:44 -07:00
devlink_trap.sh
devlink_trap_acl_drops.sh
devlink_trap_control.sh selftests: mlxsw: Add a test for EAPOL trap 2022-11-09 19:06:16 -08:00
devlink_trap_l2_drops.sh selftests: mlxsw: Add a test for locked port trap 2022-11-09 19:06:16 -08:00
devlink_trap_l3_drops.sh
devlink_trap_l3_exceptions.sh
devlink_trap_policer.sh
devlink_trap_tunnel_ipip.sh
devlink_trap_tunnel_ipip6.sh selftests: mlxsw: Move IPv6 decap_error test to shared directory 2022-12-08 18:46:32 -08:00
devlink_trap_tunnel_vxlan.sh
devlink_trap_tunnel_vxlan_ipv6.sh
egress_vid_classification.sh selftests: mlxsw: egress_vid_classification: Fix the diagram 2023-06-05 11:29:49 +01:00
ethtool_lanes.sh
extack.sh selftests: mlxsw: extack: Disable IPv6 autogen on bridges 2023-06-21 14:02:52 -07:00
fib.sh
fib_offload.sh
hw_stats_l3.sh
ingress_rif_conf_1d.sh selftests: mlxsw: ingress_rif_conf_1d: Fix the diagram 2023-06-05 11:29:49 +01:00
ingress_rif_conf_1q.sh selftests: mlxsw: Add ingress RIF configuration test for 802.1Q bridge 2022-08-18 20:50:40 -07:00
ingress_rif_conf_vxlan.sh selftests: mlxsw: Add ingress RIF configuration test for VXLAN 2022-08-18 20:50:40 -07:00
mirror_gre.sh
mirror_gre_scale.sh selftests: mlxsw: mirror_gre_scale: Disable IPv6 autogen on a bridge 2023-06-21 14:02:52 -07:00
mlxsw_lib.sh selftests: mlxsw: Add QOS test for maximum use of descriptors 2022-09-19 18:07:59 -07:00
one_armed_router.sh selftests: mlxsw: one_armed_router: Use port MAC for bridge address 2023-06-21 14:02:52 -07:00
port_scale.sh
q_in_q_veto.sh selftests: mlxsw: q_in_q_veto: Disable IPv6 autogen on bridges 2023-06-21 14:02:52 -07:00
qos_defprio.sh selftests: mlxsw: qos_defprio: Convert from lldptool to dcb 2023-01-31 21:02:11 -08:00
qos_dscp_bridge.sh selftests: mlxsw: qos_dscp_bridge: Disable IPv6 autogen on a bridge 2023-06-21 14:02:52 -07:00
qos_dscp_router.sh selftests: mlxsw: qos_dscp_router: Convert from lldptool to dcb 2023-01-31 21:02:11 -08:00
qos_ets_strict.sh selftests: mlxsw: qos_ets_strict: Disable IPv6 autogen on bridges 2023-06-21 14:02:52 -07:00
qos_headroom.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
qos_lib.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
qos_max_descriptors.sh selftests: mlxsw: Add QOS test for maximum use of descriptors 2022-09-19 18:07:59 -07:00
qos_mc_aware.sh selftests: mlxsw: qos_mc_aware: Disable IPv6 autogen on bridges 2023-06-21 14:02:52 -07:00
qos_pfc.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
rif_counter_scale.sh selftests: mlxsw: Add a RIF counter scale test 2022-06-17 10:31:33 +01:00
rif_mac_profile_scale.sh
rif_mac_profiles.sh
rif_mac_profiles_occ.sh
router_scale.sh
rtnetlink.sh selftests: mlxsw: Add a test for invalid locked bridge port configurations 2022-11-09 19:06:16 -08:00
sch_ets.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_offload.sh
sch_red_core.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_red_ets.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_red_prio.sh
sch_red_root.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_tbf_ets.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_tbf_prio.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sch_tbf_root.sh selftests: forwarding: generalize bail_on_lldpad from mlxsw 2023-04-20 20:03:21 -07:00
sharedbuffer.sh selftests: mlxsw: Fix test failure on Spectrum-4 2023-08-18 19:41:06 -07:00
sharedbuffer_configuration.py
tc_action_hw_stats.sh
tc_flower_scale.sh selftests: mlxsw: tc_flower_scale: Add a traffic test 2022-06-17 10:31:33 +01:00
tc_police_occ.sh
tc_police_scale.sh
tc_restrictions.sh
tc_sample.sh
vxlan.sh selftests: mlxsw: vxlan: Disable IPv6 autogen on bridges 2023-06-21 14:02:52 -07:00
vxlan_fdb_veto.sh
vxlan_fdb_veto_ipv6.sh
vxlan_flooding.sh
vxlan_ipv6.sh