Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Petr Machata and committed by
Paolo Abeni
bfc42940 f359d44a

+2
+1
tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh
··· 50 50 NUM_NETIFS=4 51 51 lib_dir=$(dirname "$0") 52 52 source "$lib_dir"/../../../net/forwarding/lib.sh 53 + source "$lib_dir"/../../../net/forwarding/tc_common.sh 53 54 54 55 h1_create() 55 56 {
+1
tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh
··· 15 15 lib_dir=$(dirname "$0") 16 16 source "$lib_dir"/../../../net/forwarding/lib.sh 17 17 source "$lib_dir"/../../../net/forwarding/ipip_lib.sh 18 + source "$lib_dir"/../../../net/forwarding/tc_common.sh 18 19 19 20 setup_prepare() 20 21 {