netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
@ 2023-08-12  8:40 Zhengchao Shao
  2023-08-16  6:10 ` patchwork-bot+netdevbpf
  2023-08-16  6:11 ` Hangbin Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Zhengchao Shao @ 2023-08-12  8:40 UTC (permalink / raw)
  To: netdev, linux-kselftest, shuah
  Cc: j.vosburgh, andy, weiyongjun1, yuehaibing, shaozhengchao

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.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
---
 .../drivers/net/bonding/bond-arp-interval-causes-panic.sh        | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
index 71c00bfafbc9..7b2d421f09cf 100755
--- a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
+++ b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
@@ -11,7 +11,6 @@ finish()
 {
 	ip netns delete server || true
 	ip netns delete client || true
-	ip link del link1_1 || true
 }
 
 trap finish EXIT
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-12  8:40 [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1 Zhengchao Shao
@ 2023-08-16  6:10 ` patchwork-bot+netdevbpf
  2023-08-16  6:11 ` Hangbin Liu
  1 sibling, 0 replies; 8+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-08-16  6:10 UTC (permalink / raw)
  To: Zhengchao Shao
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing

Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Sat, 12 Aug 2023 16:40:36 +0800 you wrote:
> 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.
> 
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
> ---
>  .../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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-12  8:40 [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1 Zhengchao Shao
  2023-08-16  6:10 ` patchwork-bot+netdevbpf
@ 2023-08-16  6:11 ` Hangbin Liu
  2023-08-16  7:55   ` shaozhengchao
  1 sibling, 1 reply; 8+ messages in thread
From: Hangbin Liu @ 2023-08-16  6:11 UTC (permalink / raw)
  To: Zhengchao Shao
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing

On Sat, Aug 12, 2023 at 04:40:36PM +0800, Zhengchao Shao wrote:
> 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.

What if the test exit because the cmd execute failed before setting
link1_1 to netns client?

Thanks
Hangbin
> 
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
> ---
>  .../drivers/net/bonding/bond-arp-interval-causes-panic.sh        | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
> index 71c00bfafbc9..7b2d421f09cf 100755
> --- a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
> +++ b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
> @@ -11,7 +11,6 @@ finish()
>  {
>  	ip netns delete server || true
>  	ip netns delete client || true
> -	ip link del link1_1 || true
>  }
>  
>  trap finish EXIT
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-16  6:11 ` Hangbin Liu
@ 2023-08-16  7:55   ` shaozhengchao
  2023-08-16  8:33     ` Hangbin Liu
  0 siblings, 1 reply; 8+ messages in thread
From: shaozhengchao @ 2023-08-16  7:55 UTC (permalink / raw)
  To: Hangbin Liu
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing



On 2023/8/16 14:11, Hangbin Liu wrote:
> On Sat, Aug 12, 2023 at 04:40:36PM +0800, Zhengchao Shao wrote:
>> 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.
> 
Hi Hangbin:
> What if the test exit because the cmd execute failed before setting
> link1_1 to netns client?
> 
> Thanks
> Hangbin
>>
	Your consideration is indeed possible.
"ip link del link1_1 >/dev/null 2>&1" maybe looks better?

Zhengchao Shao

>> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
>> ---
>>   .../drivers/net/bonding/bond-arp-interval-causes-panic.sh        | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
>> index 71c00bfafbc9..7b2d421f09cf 100755
>> --- a/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
>> +++ b/tools/testing/selftests/drivers/net/bonding/bond-arp-interval-causes-panic.sh
>> @@ -11,7 +11,6 @@ finish()
>>   {
>>   	ip netns delete server || true
>>   	ip netns delete client || true
>> -	ip link del link1_1 || true
>>   }
>>   
>>   trap finish EXIT
>> -- 
>> 2.34.1
>>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-16  7:55   ` shaozhengchao
@ 2023-08-16  8:33     ` Hangbin Liu
  2023-08-16  9:22       ` shaozhengchao
  0 siblings, 1 reply; 8+ messages in thread
From: Hangbin Liu @ 2023-08-16  8:33 UTC (permalink / raw)
  To: shaozhengchao
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing

On Wed, Aug 16, 2023 at 03:55:30PM +0800, shaozhengchao wrote:
> 
> 
> On 2023/8/16 14:11, Hangbin Liu wrote:
> > On Sat, Aug 12, 2023 at 04:40:36PM +0800, Zhengchao Shao wrote:
> > > 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.
> > 
> Hi Hangbin:
> > What if the test exit because the cmd execute failed before setting
> > link1_1 to netns client?
> > 
> > Thanks
> > Hangbin
> > > 
> 	Your consideration is indeed possible.
> "ip link del link1_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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-16  8:33     ` Hangbin Liu
@ 2023-08-16  9:22       ` shaozhengchao
  2023-08-16 10:02         ` Hangbin Liu
  0 siblings, 1 reply; 8+ messages in thread
From: shaozhengchao @ 2023-08-16  9:22 UTC (permalink / raw)
  To: Hangbin Liu
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing



On 2023/8/16 16:33, Hangbin Liu wrote:
> On Wed, Aug 16, 2023 at 03:55:30PM +0800, shaozhengchao wrote:
>>
>>
>> On 2023/8/16 14:11, Hangbin Liu wrote:
>>> On Sat, Aug 12, 2023 at 04:40:36PM +0800, Zhengchao Shao wrote:
>>>> 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.
>>>
>> Hi Hangbin:
>>> What if the test exit because the cmd execute failed before setting
>>> link1_1 to netns client?
>>>
>>> Thanks
>>> Hangbin
>>>>
>> 	Your consideration is indeed possible.
>> "ip link del link1_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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-16  9:22       ` shaozhengchao
@ 2023-08-16 10:02         ` Hangbin Liu
  2023-08-16 13:48           ` shaozhengchao
  0 siblings, 1 reply; 8+ messages in thread
From: Hangbin Liu @ 2023-08-16 10:02 UTC (permalink / raw)
  To: shaozhengchao
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing

On Wed, Aug 16, 2023 at 05:22:38PM +0800, shaozhengchao wrote:
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1
  2023-08-16 10:02         ` Hangbin Liu
@ 2023-08-16 13:48           ` shaozhengchao
  0 siblings, 0 replies; 8+ messages in thread
From: shaozhengchao @ 2023-08-16 13:48 UTC (permalink / raw)
  To: Hangbin Liu
  Cc: netdev, linux-kselftest, shuah, j.vosburgh, andy, weiyongjun1,
	yuehaibing



On 2023/8/16 18:02, Hangbin Liu wrote:
> On Wed, Aug 16, 2023 at 05:22:38PM +0800, shaozhengchao wrote:
>> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-16 13:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12  8:40 [PATCH net-next] selftests: bonding: remove redundant delete action of device link1_1 Zhengchao Shao
2023-08-16  6:10 ` patchwork-bot+netdevbpf
2023-08-16  6:11 ` Hangbin Liu
2023-08-16  7:55   ` shaozhengchao
2023-08-16  8:33     ` Hangbin Liu
2023-08-16  9:22       ` shaozhengchao
2023-08-16 10:02         ` Hangbin Liu
2023-08-16 13:48           ` shaozhengchao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).