mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
selftests: forwarding: Make vxlan-bridge-1q pass on debug kernels
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. [1] # ./vxlan_bridge_1q.sh [...] INFO: learning vlan 10 TEST: VXLAN: flood before learning [ OK ] TEST: VXLAN: show learned FDB entry [ OK ] TEST: VXLAN: learned FDB entry [FAIL] swp4: Expected to capture 0 packets, got 10. RTNETLINK answers: No such file or directory TEST: VXLAN: deletion of learned FDB entry [ OK ] TEST: VXLAN: Ageing of learned FDB entry [FAIL] swp4: Expected to capture 0 packets, got 10. TEST: VXLAN: learning toggling on bridge port [ OK ] [...] Signed-off-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/20240304095612.462900-5-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4aca9eae6f
commit
dfbab74044
@ -750,7 +750,7 @@ __test_learning()
|
|||||||
expects[0]=0; expects[$idx1]=10; expects[$idx2]=0
|
expects[0]=0; expects[$idx1]=10; expects[$idx2]=0
|
||||||
vxlan_flood_test $mac $dst $vid "${expects[@]}"
|
vxlan_flood_test $mac $dst $vid "${expects[@]}"
|
||||||
|
|
||||||
sleep 20
|
sleep 60
|
||||||
|
|
||||||
bridge fdb show brport $vx | grep $mac | grep -q self
|
bridge fdb show brport $vx | grep $mac | grep -q self
|
||||||
check_fail $?
|
check_fail $?
|
||||||
@ -796,11 +796,11 @@ test_learning()
|
|||||||
local dst=192.0.2.100
|
local dst=192.0.2.100
|
||||||
local vid=10
|
local vid=10
|
||||||
|
|
||||||
# Enable learning on the VxLAN devices and set ageing time to 10 seconds
|
# Enable learning on the VxLAN devices and set ageing time to 30 seconds
|
||||||
ip link set dev br1 type bridge ageing_time 1000
|
ip link set dev br1 type bridge ageing_time 3000
|
||||||
ip link set dev vx10 type vxlan ageing 10
|
ip link set dev vx10 type vxlan ageing 30
|
||||||
ip link set dev vx10 type vxlan learning
|
ip link set dev vx10 type vxlan learning
|
||||||
ip link set dev vx20 type vxlan ageing 10
|
ip link set dev vx20 type vxlan ageing 30
|
||||||
ip link set dev vx20 type vxlan learning
|
ip link set dev vx20 type vxlan learning
|
||||||
reapply_config
|
reapply_config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user