selftests: drivers: hw: Include tc_common.sh in hw_stats_l3
authorPetr Machata <petrm@nvidia.com>
Fri, 12 Apr 2024 17:03:09 +0000 (19:03 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 16 Apr 2024 10:14:41 +0000 (12:14 +0200)
commitbfc42940682b809e1f51491d8d9f82b7638fcbde
treefc57978ba539b6f9d00d86f48ac4f433135a9037
parentf359d44a4e83eba434f00c4363e4b97928fd5661
selftests: drivers: hw: Include tc_common.sh in hw_stats_l3

The tests use the constant TC_HIT_TIMEOUT when waiting on the counter
values. However it does not include tc_common.sh where the counter is
specified. The test has been robust in our testing, which means the counter
is bumped quickly enough that the updated value is available already on the
first iteration. Nevertheless it's not correct. Include tc_common.sh as
appropriate.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh
tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh