Patch "selftests: test_bridge_neigh_suppress.sh: Fix failures due to duplicate MAC" has been added to the 6.6-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: test_bridge_neigh_suppress.sh: Fix failures due to duplicate MAC

to the 6.6-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-test_bridge_neigh_suppress.sh-fix-failures.patch
and it can be found in the queue-6.6 subdirectory.

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



commit a1389dc610b281e5a927ca276e099e9f3c9de5c2
Author: Ido Schimmel <idosch@xxxxxxxxxx>
Date:   Tue May 7 14:30:33 2024 +0300

    selftests: test_bridge_neigh_suppress.sh: Fix failures due to duplicate MAC
    
    [ Upstream commit 9a169c267e946b0f47f67e8ccc70134708ccf3d4 ]
    
    When creating the topology for the test, three veth pairs are created in
    the initial network namespace before being moved to one of the network
    namespaces created by the test.
    
    On systems where systemd-udev uses MACAddressPolicy=persistent (default
    since systemd version 242), this will result in some net devices having
    the same MAC address since they were created with the same name in the
    initial network namespace. In turn, this leads to arping / ndisc6
    failing since packets are dropped by the bridge's loopback filter.
    
    Fix by creating each net device in the correct network namespace instead
    of moving it there from the initial network namespace.
    
    Reported-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Closes: https://lore.kernel.org/netdev/20240426074015.251854d4@xxxxxxxxxx/
    Fixes: 7648ac72dcd7 ("selftests: net: Add bridge neighbor suppression test")
    Signed-off-by: Ido Schimmel <idosch@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240507113033.1732534-1-idosch@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/test_bridge_neigh_suppress.sh b/tools/testing/selftests/net/test_bridge_neigh_suppress.sh
index 8533393a4f186..02b986c9c247d 100755
--- a/tools/testing/selftests/net/test_bridge_neigh_suppress.sh
+++ b/tools/testing/selftests/net/test_bridge_neigh_suppress.sh
@@ -154,17 +154,9 @@ setup_topo()
 		setup_topo_ns $ns
 	done
 
-	ip link add name veth0 type veth peer name veth1
-	ip link set dev veth0 netns $h1 name eth0
-	ip link set dev veth1 netns $sw1 name swp1
-
-	ip link add name veth0 type veth peer name veth1
-	ip link set dev veth0 netns $sw1 name veth0
-	ip link set dev veth1 netns $sw2 name veth0
-
-	ip link add name veth0 type veth peer name veth1
-	ip link set dev veth0 netns $h2 name eth0
-	ip link set dev veth1 netns $sw2 name swp1
+	ip -n $h1 link add name eth0 type veth peer name swp1 netns $sw1
+	ip -n $sw1 link add name veth0 type veth peer name veth0 netns $sw2
+	ip -n $h2 link add name eth0 type veth peer name swp1 netns $sw2
 }
 
 setup_host_common()




[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