linux-stable/tools/testing/selftests/drivers
Hangbin Liu be7d58c9a2 selftests: bonding: do not set port down before adding to bond
[ Upstream commit be80942465 ]

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
a4abfa627c ("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: a4abfa627c ("net: rtnetlink: Enslave device before bringing it up")
Reported-by: Zhengchao Shao <shaozhengchao@huawei.com>
Closes: https://lore.kernel.org/netdev/a0ef07c7-91b0-94bd-240d-944a330fcabd@huawei.com/
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20230817082459.1685972-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-30 14:52:32 +02:00
..
dma-buf selftests: drivers: Fix incorrect kernel headers search path 2023-02-13 09:09:44 -07:00
gpu selftests/drivers/gpu: Add error messages to drm_mm.sh 2022-06-28 13:32:29 -06:00
net selftests: bonding: do not set port down before adding to bond 2023-08-30 14:52:32 +02:00
s390x/uvdevice selftests: drivers: Fix incorrect kernel headers search path 2023-02-13 09:09:44 -07:00
sdsi selftests: sdsi: test sysfs setup 2022-03-02 14:56:12 +01:00
usb/usbip selftests: usbip: add wait after attach and before checking port status 2018-10-09 16:13:42 +02:00
.gitignore selftests: drivers/s390x: Add uvdevice tests 2022-05-20 16:38:42 +02:00