selftests: drv-net: Add test for devlink-rate traffic class bandwidth distributionThis test suite validates the functionality of the devlink-rate API fortraffic class (TC) bandwidth allocation. It
selftests: drv-net: Add test for devlink-rate traffic class bandwidth distributionThis test suite validates the functionality of the devlink-rate API fortraffic class (TC) bandwidth allocation. It ensures that bandwidth canbe distributed between different traffic classes as configured, andverifies that explicit TC-to-queue mapping is required for theallocation to be effective.The first test (test_no_tc_mapping_bandwidth) is marked as expectedfailure on mlx5, since the hardware automatically enforces trafficclass separation by dynamically moving queues to the correct TCscheduler, even without explicit TC-to-queue mapping configuration.Test output on mlx5: 1..2 # Created VF interface: eth5 # Created VLAN eth5.101 on eth5 with tc 3 and IP 198.51.100.2 # Created VLAN eth5.102 on eth5 with tc 4 and IP 198.51.100.10 # Set representor eth4 up and added to bridge # Bandwidth check results without TC mapping: # TC 3: 0.19 Gbits/sec # TC 4: 0.76 Gbits/sec # Total bandwidth: 0.95 Gbits/sec # TC 3 percentage: 20.0% # TC 4 percentage: 80.0% ok 1 devlink_rate_tc_bw.test_no_tc_mapping_bandwidth # XFAIL Bandwidth matched 80/20 split without TC mapping # Created VF interface: eth5 # Created VLAN eth5.101 on eth5 with tc 3 and IP 198.51.100.2 # Created VLAN eth5.102 on eth5 with tc 4 and IP 198.51.100.10 # Set representor eth4 up and added to bridge # Bandwidth check results with TC mapping: # TC 3: 0.21 Gbits/sec # TC 4: 0.78 Gbits/sec # Total bandwidth: 0.98 Gbits/sec # TC 3 percentage: 21.1% # TC 4 percentage: 78.9% # Bandwidth is distributed as 80/20 with TC mapping ok 2 devlink_rate_tc_bw.test_tc_mapping_bandwidth # Totals: pass:1 fail:0 xfail:1 xpass:0 skip:0 error:0Signed-off-by: Carolina Jubran <cjubran@nvidia.com>Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>Reviewed-by: Nimrod Oren <noren@nvidia.com>Signed-off-by: Mark Bloch <mbloch@nvidia.com>Link: https://patch.msgid.link/20250629142138.361537-9-mbloch@nvidia.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
selftests: drv-net: import things in lib one by onepylint doesn't understand our path hacks, and it generates a lotof warnings for driver tests. Import what we use one by one, thisis hopefully no
selftests: drv-net: import things in lib one by onepylint doesn't understand our path hacks, and it generates a lotof warnings for driver tests. Import what we use one by one, thisis hopefully not too tedious and it makes pylint happy.Link: https://patch.msgid.link/20250621171944.2619249-9-kuba@kernel.orgSigned-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: net-drv: remove the nic_performance and nic_link_layer testsRevert fbbf93556f0c ("selftests: nic_performance: Add selftest for performance of NIC driver")Revert c087dc54394b ("selftests
selftests: net-drv: remove the nic_performance and nic_link_layer testsRevert fbbf93556f0c ("selftests: nic_performance: Add selftest for performance of NIC driver")Revert c087dc54394b ("selftests: nic_link_layer: Add selftest case for speed and duplex states")Revert 6116075e18f7 ("selftests: nic_link_layer: Add link layer selftest for NIC driver")These tests don't clean up after themselves, don't use the disruptiveannotations, don't get included in make install etc. etc. The testswere added before we have any "HW" runner, so the issues were missed.Our CI doesn't have any way of excluding broken tests, remove thesefor now to stop the random pollution of results due to broken env.We can always add them back once / if fixed.Acked-by: Stanislav Fomichev <sdf@fomichev.me>Reviewed-by: David Wei <dw@davidwei.uk>Link: https://patch.msgid.link/20250507140109.929801-1-kuba@kernel.orgSigned-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: fix nested double quotes in f-stringReplace nested double quotes in f-string with outer single quotes.Fixes: 6116075e18f7 ("selftests: nic_link_layer: Add link layer selftest for NIC d
selftests: fix nested double quotes in f-stringReplace nested double quotes in f-string with outer single quotes.Fixes: 6116075e18f7 ("selftests: nic_link_layer: Add link layer selftest for NIC driver")Signed-off-by: David Wei <dw@davidwei.uk>Link: https://patch.msgid.link/20241122064821.2821199-1-dw@davidwei.ukSigned-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: nic_link_layer: Add link layer selftest for NIC driverAdd selftest file for the link layer tests of a NIC driver.Test for auto-negotiation is added.Add LinkConfig class for changing li
selftests: nic_link_layer: Add link layer selftest for NIC driverAdd selftest file for the link layer tests of a NIC driver.Test for auto-negotiation is added.Add LinkConfig class for changing link layer configs.Selftest makes use of ksft modules and ethtool.Include selftest file in the Makefile.Signed-off-by: Mohan Prasad J <mohan.prasad@microchip.com>Signed-off-by: Paolo Abeni <pabeni@redhat.com>
selftests: drv-net-hw: support using Python from net hw testsWe created a separate directory for HW-only tests, recently.Glue in the Python test library there, Python is a bit annoyingwhen it com
selftests: drv-net-hw: support using Python from net hw testsWe created a separate directory for HW-only tests, recently.Glue in the Python test library there, Python is a bit annoyingwhen it comes to using library code located "lower"in the directory structure.Reuse the Env class, but let tests require non-nsim setup.Reviewed-by: Willem de Bruijn <willemb@google.com>Link: https://lore.kernel.org/r/20240429144426.743476-3-kuba@kernel.orgSigned-off-by: Jakub Kicinski <kuba@kernel.org>