Patch "selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry static" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry static

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-net-mirror_gre_vlan_bridge_1q-make-an-fdb-.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 47c43d0994d705af768006eed9309fc4ec80a820
Author: Petr Machata <petrm@xxxxxxxxxx>
Date:   Fri Apr 23 14:19:43 2021 +0200

    selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry static
    
    [ Upstream commit c8d0260cdd96fdccdef0509c4160e28a1012a5d7 ]
    
    The FDB roaming test installs a destination MAC address on the wrong
    interface of an FDB database and tests whether the mirroring fails, because
    packets are sent to the wrong port. The test by mistake installs the FDB
    entry as local. This worked previously, because drivers were notified of
    local FDB entries in the same way as of static entries. However that has
    been fixed in the commit 6ab4c3117aec ("net: bridge: don't notify switchdev
    for local FDB addresses"), and local entries are not notified anymore. As a
    result, the HW is not reconfigured for the FDB roam, and mirroring keeps
    working, failing the test.
    
    To fix the issue, mark the FDB entry as static.
    
    Fixes: 9c7c8a82442c ("selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests")
    Signed-off-by: Petr Machata <petrm@xxxxxxxxxx>
    Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh
index c02291e9841e..880e3ab9d088 100755
--- a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh
+++ b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh
@@ -271,7 +271,7 @@ test_span_gre_fdb_roaming()
 
 	while ((RET == 0)); do
 		bridge fdb del dev $swp3 $h3mac vlan 555 master 2>/dev/null
-		bridge fdb add dev $swp2 $h3mac vlan 555 master
+		bridge fdb add dev $swp2 $h3mac vlan 555 master static
 		sleep 1
 		fail_test_span_gre_dir $tundev ingress
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux