]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: forwarding: lib: Add tc_rule_handle_stats_get()
authorPetr Machata <petrm@mellanox.com>
Mon, 2 Mar 2020 17:56:02 +0000 (19:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:03:52 +0000 (17:03 -0800)
commit84ea1f8541721c1852bc95f4d50a603c661eabc6
tree1c47a1bbf2c49e7a478b71e820840faddd5a1fc6
parenta29b56c45114bedfd4d016495b93b35c3468bd72
selftests: forwarding: lib: Add tc_rule_handle_stats_get()

The function tc_rule_stats_get() fetches a given statistic of a TC rule
given the rule preference. Another common way to reference a rule is using
its handle. Introduce a dual to the aforementioned function that gets a
statistic given rule handle.

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