Skip to contentSkip to conversation

selftests: bonding: delete unnecessary line

PATCH Applied Liang Li 3 participants 3 messages May 9, 2023 – May 10, 2023

Subsystems (4)
lore
Share & tools
lore

Liang Li

author
#0 lore raw

PATCH 1/1 selftests: bonding: delete unnecessary line

"ip link set dev "$devbond1" nomaster"
This line code in bond-eth-type-change.sh is unnecessary. Because $devbond1 was not added to any master device.

---
 .../selftests/drivers/net/bonding/bond-eth-type-change.sh        | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/drivers/net/bonding/bond-eth-type-change.sh +0 -1
index 5cdd22048ba7..862e947e17c7 100755
@@ -53,7 +53,6 @@ bond_test_enslave_type_change()
 	# restore ARPHRD_ETHER type by enslaving such device
 	ip link set dev "$devbond2" master "$devbond0"
 	check_err $? "could not enslave $devbond2 to $devbond0"
-	ip link set dev "$devbond1" nomaster
 
 	bond_check_flags "$devbond0"
 
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Liang Li

"ip link set dev "$devbond1" nomaster"
This line code in bond-eth-type-change.sh is unnecessary. Because $devbond1 was not added to any master device.

---
 .../selftests/drivers/net/bonding/bond-eth-type-change.sh        | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/drivers/net/bonding/bond-eth-type-change.sh +0 -0
index 5cdd22048ba7..862e947e17c7 100755

tools/testing/selftests/drivers/net/bonding/bond-eth-type-change.sh bond_test_enslave_type_change() · line 58

Quoted 7 lines
tools/testing/selftests/drivers/net/bonding/bond-eth-type-change.sh +0 -1
@@ -53,7 +53,6 @@ bond_test_enslave_type_change()
 	# restore ARPHRD_ETHER type by enslaving such device
 	ip link set dev "$devbond2" master "$devbond0"
 	check_err $? "could not enslave $devbond2 to $devbond0"
-	ip link set dev "$devbond1" nomaster
 
 	bond_check_flags "$devbond0"
 

Thanks,

#2 lore raw
In reply to Liang Li
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Tue, 9 May 2023 09:09:19 +0000 you wrote:

"ip link set dev "$devbond1" nomaster"
This line code in bond-eth-type-change.sh is unnecessary. Because $devbond1 was not added to any master device.

[...]

Here is the summary with links:
- [net-next] selftests: bonding: delete unnecessary line

    https://git.kernel.org/netdev/net-next/c/2f0f556713f0

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html