Commit ed2ae69c authored by Petr Machata's avatar Petr Machata Committed by Paolo Abeni

selftests: mlxsw: hw_stats_l3: Add a new test

Add a test that verifies that UAPI notifications are emitted, as mlxsw
installs and deinstalls HW counters for the L3 offload xstats.
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 9b18942e
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
lib_dir=$(dirname $0)/../../../net/forwarding
ALL_TESTS="
l3_monitor_test
"
NUM_NETIFS=0
source $lib_dir/lib.sh
swp=$NETIF_NO_CABLE
cleanup()
{
pre_cleanup
}
l3_monitor_test()
{
hw_stats_monitor_test $swp l3 \
"ip addr add dev $swp 192.0.2.1/28" \
"ip addr del dev $swp 192.0.2.1/28"
}
trap cleanup EXIT
setup_wait
tests_run
exit $EXIT_STATUS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment