]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
selftests: net: bridge: fix typo in vlan_filtering dependency test
authorIvan Vecera <ivecera@redhat.com>
Mon, 29 Nov 2021 09:58:50 +0000 (10:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 12:49:53 +0000 (12:49 +0000)
Prior patch:
]# TESTS=vlmc_filtering_test ./bridge_vlan_mcast.sh
TEST: Vlan multicast snooping enable                                [ OK ]
Device "bridge" does not exist.
TEST: Disable multicast vlan snooping when vlan filtering is disabled   [FAIL]
        Vlan filtering is disabled but multicast vlan snooping is still enabled

After patch:
# TESTS=vlmc_filtering_test ./bridge_vlan_mcast.sh
TEST: Vlan multicast snooping enable                                [ OK ]
TEST: Disable multicast vlan snooping when vlan filtering is disabled   [ OK ]

Fixes: f5a9dd58f48b7c ("selftests: net: bridge: add test for vlan_filtering dependency")
Cc: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh

index 5224a5a8595b32eb81b13bada6c50186d4e58cbe..8748d1b1d95b711712aa386ded63aba7a5f5e752 100755 (executable)
@@ -527,7 +527,7 @@ vlmc_filtering_test()
 {
        RET=0
        ip link set dev br0 type bridge vlan_filtering 0
-       ip -j -d link show dev bridge | \
+       ip -j -d link show dev br0 | \
        jq -e "select(.[0].linkinfo.info_data.mcast_vlan_snooping == 1)" &>/dev/null
        check_fail $? "Vlan filtering is disabled but multicast vlan snooping is still enabled"
        log_test "Disable multicast vlan snooping when vlan filtering is disabled"