Skip to contentSkip to conversation

selftests: bonding: delete unnecessary line.

PATCH In review Liang Li 2 participants 2 messages May 9, 2023

Subsystems (4)
lore
Share & tools
lore

Liang Li

author
#0 lore raw

PATCH v2 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.

Fixes 222c94ec0ad4("selftests: bonding: add tests for ether type changes")
---
 .../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
#1 lore raw
Quoted 5 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.

Fixes 222c94ec0ad4("selftests: bonding: add tests for ether type changes")

It doesn't fix anything because there really isn't a bug. The test still runs as expected with the line below.

Quoted 11 lines
---
 .../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"
 

I still think this patch should be targeted at net-next instead, the test runs as expected with or without that line.