linux/tools/testing/selftests/drivers/net/mlxsw
Danielle Ratson f72e2f48c7 net: selftests: Add lanes setting test
Test that setting lanes parameter is working.

Set max speed and max lanes in the list of advertised link modes,
and then try to set max speed with the lanes below max lanes if exists
in the list.

And then, test that setting number of lanes larger than max lanes fails.

Do the above for both autoneg on and off.

$ ./ethtool_lanes.sh

TEST: 4 lanes is autonegotiated                                     [ OK ]
TEST: Lanes number larger than max width is not set                 [ OK ]
TEST: Autoneg off, 4 lanes detected during force mode               [ OK ]
TEST: Lanes number larger than max width is not set                 [ OK ]

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-02-03 18:37:29 -08:00
..
spectrum selftests: mlxsw: Add a scale test for physical ports 2021-01-22 20:42:13 -08:00
spectrum-2 selftests: mlxsw: Add a scale test for physical ports 2021-01-22 20:42:13 -08: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 test for control packets 2020-06-01 11:49:23 -07: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: mlxsw: Add blackhole_nexthop trap test 2020-11-24 12:14:56 -08:00
devlink_trap_l3_exceptions.sh selftests: mlxsw: Do not hard code trap group name 2020-05-16 16:42:31 -07:00
devlink_trap_policer.sh selftests: mlxsw: Increase burst size for burst test 2020-08-24 17:36:11 -07:00
devlink_trap_tunnel_ipip.sh selftests: mlxsw: Do not hard code trap group name 2020-05-16 16:42:31 -07:00
devlink_trap_tunnel_vxlan.sh selftests: mlxsw: Do not hard code trap group name 2020-05-16 16:42:31 -07: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
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: Add scale test for mirror-to-gretap 2018-06-30 22:06:16 +09:00
mlxsw_lib.sh selftests: mlxsw: Add mlxsw lib 2020-02-27 11:10:15 -08: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: Add a scale test for physical ports 2021-01-22 20:42:13 -08: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: mlxsw: Fix local variable declarations in DSCP tests 2019-07-31 08:47:13 -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: Add headroom handling test 2020-09-30 14:06:54 -07:00
qos_lib.sh selftests: mlxsw: qos_lib: Add a wrapper for running mlnx_qos 2020-09-30 14:06:54 -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: Set headroom size of correct port 2021-01-04 13:36:32 -08:00
router_scale.sh selftests: mlxsw: Reduce router scale running time using offload indication 2020-02-27 11:10:15 -08:00
rtnetlink.sh selftests: mlxsw: Test RIF's reference count when joining a LAG 2020-12-06 19:22:14 -08:00
sch_ets.sh selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set 2020-09-30 14:06:54 -07:00
sch_red_core.sh selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set 2020-09-30 14:06:54 -07:00
sch_red_ets.sh selftests: mlxsw: RED: Test offload of trapping on RED qevents 2020-08-03 18:06:46 -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 offload of mirror on RED early_drop qevent 2020-07-13 17:22:22 -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: Reduce running time using offload indication 2020-02-27 11:10:15 -08:00
tc_police_occ.sh selftests: mlxsw: Test policers' occupancy 2020-07-15 18:10:00 -07:00
tc_police_scale.sh selftests: mlxsw: Reduce runtime of tc-police scale test 2020-08-24 17:36:11 -07:00
tc_restrictions.sh selftests: mlxsw: tc_restrictions: Test tc-police restrictions 2020-07-15 18:10:00 -07:00
vxlan.sh selftests: mlxsw: Use busywait helper in vxlan test 2020-02-27 11:10:14 -08:00
vxlan_fdb_veto.sh selftests: mlxsw: Test veto of unsupported VXLAN FDBs 2019-01-17 15:18:47 -08:00
vxlan_flooding.sh selftests: mlxsw: Add a test for VxLAN flooding 2018-11-19 17:59:44 -08:00