selftests: net: bridge: add vlan mcast snooping control test
authorNikolay Aleksandrov <nikolay@nvidia.com>
Thu, 25 Nov 2021 14:08:49 +0000 (16:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 27 Nov 2021 00:43:11 +0000 (16:43 -0800)
commit71ae450f97ad5e992e5e0431193c767fd624f6e7
tree5886d429854befb87e0cc99164652fb996ace2c0
parent93d5404e8988882bd33f6acc0d343c4db51eb8b4
selftests: net: bridge: add vlan mcast snooping control test

Add the first test for bridge per-vlan multicast snooping which checks
if control of the global and per-vlan options work as expected, joins
and leaves are tested at each option value.

TEST: Vlan multicast snooping enable                                [ OK ]
TEST: Vlan global options existence                                 [ OK ]
TEST: Vlan mcast_snooping global option default value               [ OK ]
TEST: Vlan 10 multicast snooping control                            [ OK ]

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh [new file with mode: 0755]