selftests: nic_performance: Add selftest for performance of NIC driver
authorMohan Prasad J <mohan.prasad@microchip.com>
Thu, 14 Nov 2024 19:25:20 +0000 (00:55 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Nov 2024 09:15:29 +0000 (10:15 +0100)
commitfbbf93556f0c1ad9b53fd1ec8fd2e67b2debb740
tree7317eb7dd99b4954e4484be3abe215e550b3ca71
parentc087dc54394b3f8a2950007fb17a8937a38fe73a
selftests: nic_performance: Add selftest for performance of NIC driver

Add selftest case to check the send and receive throughput.
Supported link modes between local NIC driver and partner
are varied. Then send and receive throughput is captured
and verified. Test uses iperf3 tool.
Add iperf3 server/client function in GenerateTraffic class.

Signed-off-by: Mohan Prasad J <mohan.prasad@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/nic_performance.py [new file with mode: 0644]
tools/testing/selftests/drivers/net/lib/py/load.py