]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: tc_rule_stats_get: Parameterize direction
authorPetr Machata <petrm@mellanox.com>
Tue, 26 Jun 2018 00:07:45 +0000 (02:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2018 01:42:12 +0000 (10:42 +0900)
commit15e1737a7cce6c41bb5c4ea40e426fa4f0b36694
tree92b291dac6b75f40e44dbb97464f1df890df6e49
parentcdaac1c86e5c236def5a6b07061c6f6213c5ee80
selftests: forwarding: tc_rule_stats_get: Parameterize direction

The GRE multipath tests need stats on an egress counter. Change
tc_rule_stats_get() to take direction as an optional argument, with
default of ingress.

Take the opportunity to change line continuation character from | to \.
Move the | to the next line, which indent.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh