diff options
| author | Petr Machata <[email protected]> | 2018-06-30 02:46:05 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-06-30 22:06:15 +0900 |
| commit | 68d9cea594b5da185e5b048e9b4fa0dadeafe88a (patch) | |
| tree | 570f0a660f7147520042cd09f3d6478f79dbf8c6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 96fa91d281229390b75a004d49582400b5f93cb1 (diff) | |
selftests: forwarding: lib: Parameterize NUM_NETIFS in two functions
setup_wait() and tc_offload_check() both assume that all NUM_NETIFS
interfaces are relevant for a given test. However, the scale test script
acts as an umbrella for a number of sub-tests, some of which may not
require all the interfaces.
Thus it's suboptimal for tc_offload_check() to query all the interfaces.
In case of setup_wait() it's incorrect, because the sub-test in question
of course doesn't configure any interfaces beyond what it needs, and
setup_wait() then ends up waiting indefinitely for the extraneous
interfaces to come up.
For that reason, give setup_wait() and tc_offload_check() an optional
parameter with a number of interfaces to probe. Fall back to global
NUM_NETIFS if the parameter is not given.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions