netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels
@ 2024-07-07  9:54 Ido Schimmel
  2024-07-08 10:30 ` Simon Horman
  2024-07-09 18:20 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Ido Schimmel @ 2024-07-07  9:54 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, pabeni, edumazet, petrm, Ido Schimmel

The ageing time used by the test is too short for debug kernels and
results in entries being aged out prematurely [1].

Fix by increasing the ageing time.

The same change was done for the VLAN-aware version of the test in
commit dfbab74044be ("selftests: forwarding: Make vxlan-bridge-1q pass
on debug kernels").

[1]
 # ./vxlan_bridge_1d.sh
 [...]
 # TEST: VXLAN: flood before learning                                  [ OK ]
 # TEST: VXLAN: show learned FDB entry                                 [ OK ]
 # TEST: VXLAN: learned FDB entry                                      [FAIL]
 # veth3: Expected to capture 0 packets, got 4.
 # RTNETLINK answers: No such file or directory
 # TEST: VXLAN: deletion of learned FDB entry                          [ OK ]
 # TEST: VXLAN: Ageing of learned FDB entry                            [FAIL]
 # veth3: Expected to capture 0 packets, got 2.
 [...]

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
---
 tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
index 6f0a2e452ba1..3f9d50f1ef9e 100755
--- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
+++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
@@ -680,9 +680,9 @@ test_learning()
 	local mac=de:ad:be:ef:13:37
 	local dst=192.0.2.100
 
-	# Enable learning on the VxLAN device and set ageing time to 10 seconds
-	ip link set dev br1 type bridge ageing_time 1000
-	ip link set dev vx1 type vxlan ageing 10
+	# Enable learning on the VxLAN device and set ageing time to 30 seconds
+	ip link set dev br1 type bridge ageing_time 3000
+	ip link set dev vx1 type vxlan ageing 30
 	ip link set dev vx1 type vxlan learning
 	reapply_config
 
@@ -740,7 +740,7 @@ test_learning()
 
 	vxlan_flood_test $mac $dst 0 10 0
 
-	sleep 20
+	sleep 60
 
 	bridge fdb show brport vx1 | grep $mac | grep -q self
 	check_fail $?
-- 
2.45.1


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

* Re: [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels
  2024-07-07  9:54 [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels Ido Schimmel
@ 2024-07-08 10:30 ` Simon Horman
  2024-07-09 18:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2024-07-08 10:30 UTC (permalink / raw)
  To: Ido Schimmel; +Cc: netdev, davem, kuba, pabeni, edumazet, petrm

On Sun, Jul 07, 2024 at 12:54:58PM +0300, Ido Schimmel wrote:
> The ageing time used by the test is too short for debug kernels and
> results in entries being aged out prematurely [1].
> 
> Fix by increasing the ageing time.
> 
> The same change was done for the VLAN-aware version of the test in
> commit dfbab74044be ("selftests: forwarding: Make vxlan-bridge-1q pass
> on debug kernels").
> 
> [1]
>  # ./vxlan_bridge_1d.sh
>  [...]
>  # TEST: VXLAN: flood before learning                                  [ OK ]
>  # TEST: VXLAN: show learned FDB entry                                 [ OK ]
>  # TEST: VXLAN: learned FDB entry                                      [FAIL]
>  # veth3: Expected to capture 0 packets, got 4.
>  # RTNETLINK answers: No such file or directory
>  # TEST: VXLAN: deletion of learned FDB entry                          [ OK ]
>  # TEST: VXLAN: Ageing of learned FDB entry                            [FAIL]
>  # veth3: Expected to capture 0 packets, got 2.
>  [...]
> 
> Signed-off-by: Ido Schimmel <idosch@nvidia.com>
> Reviewed-by: Petr Machata <petrm@nvidia.com>

Reviewed-by: Simon Horman <horms@kernel.org>


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

* Re: [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels
  2024-07-07  9:54 [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels Ido Schimmel
  2024-07-08 10:30 ` Simon Horman
@ 2024-07-09 18:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-09 18:20 UTC (permalink / raw)
  To: Ido Schimmel; +Cc: netdev, davem, kuba, pabeni, edumazet, petrm

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 7 Jul 2024 12:54:58 +0300 you wrote:
> The ageing time used by the test is too short for debug kernels and
> results in entries being aged out prematurely [1].
> 
> Fix by increasing the ageing time.
> 
> The same change was done for the VLAN-aware version of the test in
> commit dfbab74044be ("selftests: forwarding: Make vxlan-bridge-1q pass
> on debug kernels").
> 
> [...]

Here is the summary with links:
  - [net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels
    https://git.kernel.org/netdev/net-next/c/3699e57aae88

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] 3+ messages in thread

end of thread, other threads:[~2024-07-09 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-07  9:54 [PATCH net-next] selftests: forwarding: Make vxlan-bridge-1d pass on debug kernels Ido Schimmel
2024-07-08 10:30 ` Simon Horman
2024-07-09 18:20 ` patchwork-bot+netdevbpf

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).