]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: net: fdb_notify: Add a test for FDB notifications
authorPetr Machata <petrm@nvidia.com>
Thu, 14 Nov 2024 14:09:59 +0000 (15:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Nov 2024 00:39:19 +0000 (16:39 -0800)
commit15880bec9bc32ddc8f70f8c551745c2344233372
treef8fac2301bdb4e04f0de41c86a9aa09b07e94fee
parent46f6569cf0754e27816403c3701c7070ff281ad0
selftests: net: fdb_notify: Add a test for FDB notifications

Check that only one notification is produced for various FDB edit
operations.

Regarding the ip_link_add() and ip_link_master() helpers. This pattern of
action plus corresponding defer is bound to come up often, and a dedicated
vocabulary to capture it will be handy. tunnel_create() and vlan_create()
from forwarding/lib.sh are somewhat opaque and perhaps too kitchen-sinky,
so I tried to go in the opposite direction with these ones, and wrapped
only the bare minimum to schedule a corresponding cleanup.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/910c5880ae6d3b558d6889cbdba2be690c2615c6.1731589511.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/fdb_notify.sh [new file with mode: 0755]
tools/testing/selftests/net/lib.sh