OSDN Git Service

selftests: forwarding: pedit_dsfield: Check counter value
authorPetr Machata <petrm@mellanox.com>
Fri, 29 May 2020 11:16:54 +0000 (14:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 04:48:24 +0000 (21:48 -0700)
commit3ed97037f063b9130b56991f55f346597d27440d
treef063063095695deaa42305100380e2402ef779a7
parent1c0522b4a2e143fa6e55e4bd2308415c81184ec7
selftests: forwarding: pedit_dsfield: Check counter value

A missing stats_update callback was recently added to act_pedit. Now that
iproute2 supports JSON dumping for pedit, extend the pedit_dsfield selftest
with a check that would have caught the fact that the callback was missing.

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