selftests: bonding: remove redundant delete action of device link1_1
Subsystems (4)
PATCH 1/1 selftests: bonding: remove redundant delete action of device link1_1
When run command "ip netns delete client", device link1_1 has been deleted. So, it is no need to delete link1_1 again. Remove it.
--- .../drivers/net/bonding/bond-arp-interval-causes-panic.sh | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh +0 -1
@@ -11,7 +11,6 @@ finish() { ip netns delete server || true ip netns delete client || true - ip link del link1_1 || true } trap finish EXIT
Signature · 1 line
2.34.1
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 7 lines · On Sat, 12 Aug 2023 16:40:36 +0800 you wrote:
When run command "ip netns delete client", device
link1_1has been deleted. So, it is no need to deletelink1_1again. Remove it.Signed-off-by Zhengchao Shao <[email protected]>--- .../drivers/net/bonding/bond-arp-interval-causes-panic.sh | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [net-next] selftests: bonding: remove redundant delete action of device link1_1
https://git.kernel.org/netdev/net-next/c/e56e220d73ca
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 2 lines · Zhengchao Shao
When run command "ip netns delete client", device
link1_1has been deleted. So, it is no need to deletelink1_1again. Remove it.
What if the test exit because the cmd execute failed before setting link1_1 to netns client?
Thanks
Hangbin
Quoted 21 lines
Signed-off-by Zhengchao Shao <[email protected]>--- .../drivers/net/bonding/bond-arp-interval-causes-panic.sh | 1 - 1 file changed, 1 deletion(-)tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh +0
-1@@ -11,7 +11,6 @@ finish() { ip netns delete server || true ip netns delete client || true - ip link del link1_1 || true } trap finish EXITSignature · 1 line
2.34.1
Quoted 4 lines · Hangbin Liu
Quoted 2 lines · Zhengchao Shao
When run command "ip netns delete client", device
link1_1has been deleted. So, it is no need to deletelink1_1again. Remove it.
Hi Hangbin:
Quoted 6 lines
What if the test exit because the cmd execute failed before setting
link1_1to netns client?Thanks
HangbinQuoted 1 line
Your consideration is indeed possible.
"ip link del link1_1 >/dev/null 2>&1" maybe looks better?
Zhengchao Shao
Quoted 20 lines
Quoted 20 lines
Signed-off-by Zhengchao Shao <[email protected]>--- .../drivers/net/bonding/bond-arp-interval-causes-panic.sh | 1 - 1 file changed, 1 deletion(-)tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh +0
-1@@ -11,7 +11,6 @@ finish() { ip netns delete server || true ip netns delete client || true - ip link del link1_1 || true } trap finish EXITSignature · 1 line
2.34.1
Quoted 8 lines · shaozhengchao
Quoted 4 lines · Hangbin Liu
Quoted 2 lines · Zhengchao Shao
When run command "ip netns delete client", device
link1_1has been deleted. So, it is no need to deletelink1_1again. Remove it.Hi Hangbin:
Quoted 8 lines
Quoted 6 lines
What if the test exit because the cmd execute failed before setting
link1_1to netns client?Thanks
HangbinQuoted 1 line
Your consideration is indeed possible.
"ip link dellink1_1>/dev/null 2>&1" maybe looks better?
I have not objects to this. On the other side, this only omit the error message. It doesn't fix anything.
Thanks
Hangbin
Quoted 15 lines · Hangbin Liu
Quoted 14 lines · shaozhengchao
Quoted 4 lines · Hangbin Liu
Quoted 2 lines · Zhengchao Shao
When run command "ip netns delete client", device
link1_1has been deleted. So, it is no need to deletelink1_1again. Remove it.Hi Hangbin:
Quoted 6 lines
What if the test exit because the cmd execute failed before setting
link1_1to netns client?Thanks
HangbinQuoted 1 line
Quoted 8 lines
Quoted 2 lines
Your consideration is indeed possible.
"ip link dellink1_1>/dev/null 2>&1" maybe looks better?I have not objects to this. On the other side, this only omit the error message. It doesn't fix anything.
Thanks
Hangbin
Yes, it will fix nothing, just clean up something.
I will add it later.
Also I run bond-break-lacpdu-tx.sh, it reports FAIL. When the master is set up, the slave does not go up. It seems that the mechanism has changed. But now I haven't had time to analyze it in detail, maybe someone can do it.
Zhengchao Shao
Quoted 4 lines · shaozhengchao
Also I run
bond-break-lacpdu-tx.sh, it reports FAIL. When the master is set up, the slave does not go up. It seems that the mechanism has changed. But now I haven't had time to analyze it in detail, maybe someone can do it.
I will check it.
Hangbin
Quoted 9 lines · Hangbin Liu
Quoted 4 lines · shaozhengchao
Also I run
bond-break-lacpdu-tx.sh, it reports FAIL. When the master is set up, the slave does not go up. It seems that the mechanism has changed. But now I haven't had time to analyze it in detail, maybe someone can do it.I will check it.
Hangbin
Thanks
Zhengchao Shao