Skip to content

Commit c467a98

Browse files
idoschkuba-moo
authored andcommitted
selftests: forwarding: vxlan_bridge_1d: Check aging while forwarding
Extend the VXLAN FDB aging test case to verify that FDB entries are aged out when they only forward traffic and not refreshed by received traffic. The test fails before "vxlan: Age out FDB entries based on 'updated' time": # ./vxlan_bridge_1d.sh [...] TEST: VXLAN: Ageing of learned FDB entry [FAIL] [...] # echo $? 1 And passes after it: # ./vxlan_bridge_1d.sh [...] TEST: VXLAN: Ageing of learned FDB entry [ OK ] [...] # echo $? 0 Reviewed-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9722f83 commit c467a98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ test_learning()
740740

741741
vxlan_flood_test $mac $dst 0 10 0
742742

743+
# The entry should age out when it only forwards traffic
744+
$MZ $h1 -c 50 -d 1sec -p 64 -b $mac -B $dst -t icmp -q &
743745
sleep 60
744746

745747
bridge fdb show brport vx1 | grep $mac | grep -q self

0 commit comments

Comments
 (0)