Patch "selftests: bonding: do not set port down before adding to bond" has been added to the 6.1-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: bonding: do not set port down before adding to bond

to the 6.1-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-bonding-do-not-set-port-down-before-adding.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 36fd7c636efa528035dc9b8abc4249b7e009b470
Author: Hangbin Liu <liuhangbin@xxxxxxxxx>
Date:   Thu Aug 17 16:24:59 2023 +0800

    selftests: bonding: do not set port down before adding to bond
    
    [ Upstream commit be809424659c2844a2d7ab653aacca4898538023 ]
    
    Before adding a port to bond, it need to be set down first. In the
    lacpdu test the author set the port down specifically. But commit
    a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up")
    changed the operation order, the kernel will set the port down _after_
    adding to bond. So all the ports will be down at last and the test failed.
    
    In fact, the veth interfaces are already inactive when added. This
    means there's no need to set them down again before adding to the bond.
    Let's just remove the link down operation.
    
    Fixes: a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up")
    Reported-by: Zhengchao Shao <shaozhengchao@xxxxxxxxxx>
    Closes: https://lore.kernel.org/netdev/a0ef07c7-91b0-94bd-240d-944a330fcabd@xxxxxxxxxx/
    Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20230817082459.1685972-1-liuhangbin@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/drivers/net/bonding/bond-break-lacpdu-tx.sh b/tools/testing/selftests/drivers/net/bonding/bond-break-lacpdu-tx.sh
index 47ab90596acb2..6358df5752f90 100755
--- a/tools/testing/selftests/drivers/net/bonding/bond-break-lacpdu-tx.sh
+++ b/tools/testing/selftests/drivers/net/bonding/bond-break-lacpdu-tx.sh
@@ -57,8 +57,8 @@ ip link add name veth2-bond type veth peer name veth2-end
 
 # add ports
 ip link set fbond master fab-br0
-ip link set veth1-bond down master fbond
-ip link set veth2-bond down master fbond
+ip link set veth1-bond master fbond
+ip link set veth2-bond master fbond
 
 # bring up
 ip link set veth1-end up



[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