]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcefbf01fe6e2533f7328c689f501a05918a2c2bf
tree5886d429854befb87e0cc99164652fb996ace2c0
parent1b31ba43a7f2f34c4ed8d7886e0d657f1a773cd4
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]