selftests: lib: tc_rule_stats_get(): Move default to argument definition
authorPetr Machata <petrm@nvidia.com>
Thu, 27 Jun 2024 14:48:40 +0000 (16:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 09:55:36 +0000 (10:55 +0100)
commit9b5d5f272654ca4b97f39b6ef809e4edef794fdc
tree5851b675bc976fa619e000f1e8b22c2aefa7d13c
parent28e67746b73da72f57609c7250d514051e787e65
selftests: lib: tc_rule_stats_get(): Move default to argument definition

The argument $dir has a fallback value of "ingress". Move the fallback from
the usage site to the argument definition block to make the fact clearer.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/lib.sh