]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: lib: Allow reading TC rule byte counters
authorPetr Machata <petrm@mellanox.com>
Fri, 24 Jan 2020 13:23:17 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:56:31 +0000 (10:56 +0100)
commiteab76924903886f2871450a147372153294420b3
tree7abd16ac7cf80fb179f3f0e42247da2d546f9710
parent252e1e731bb7fa279a7b0808ea9dbf568a495c52
selftests: forwarding: lib: Allow reading TC rule byte counters

The function tc_rule_stats_get() fetches a packet counter of a given TC
rule. Extend it to support byte counters as well by adding an optional
argument with selector.

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