testing: selftests: net: forwarding: add devlink-required functionality to test ...
authorOleksandr Mazur <oleksandr.mazur@plvision.eu>
Mon, 14 Jun 2021 13:01:13 +0000 (16:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 20:04:25 +0000 (13:04 -0700)
commit53f1bd6b281945f82b48ec44be34488ee9765cb8
treec1ce850a9aff6e85cfc7e7e7a4fbacb39a237d02
parentddee9dbc3d7aec1cd9fdcc671db2dd0016fd0f3d
testing: selftests: net: forwarding: add devlink-required functionality to test (hard) dropped stats field

Add devlink_trap_drop_packets_get function, as well as test that are
used to verify devlink (hard) dropped stats functionality works.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/devlink_lib.sh