Skip to content

Commit

Permalink
selftests: drivers: hw: Include tc_common.sh in hw_stats_l3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petr Machata authored and Paolo Abeni committed Apr 16, 2024
1 parent f359d44 commit bfc4294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ALL_TESTS="
NUM_NETIFS=4
lib_dir=$(dirname "$0")
source "$lib_dir"/../../../net/forwarding/lib.sh
source "$lib_dir"/../../../net/forwarding/tc_common.sh

h1_create()
{
Expand Down
1 change: 1 addition & 0 deletions tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ NUM_NETIFS=6
lib_dir=$(dirname "$0")
source "$lib_dir"/../../../net/forwarding/lib.sh
source "$lib_dir"/../../../net/forwarding/ipip_lib.sh
source "$lib_dir"/../../../net/forwarding/tc_common.sh

setup_prepare()
{
Expand Down

0 comments on commit bfc4294

Please sign in to comment.