L2-LEARN:fix l2fib entry seq num not updated on hit (VPP-888) 13/7313/4
authorEyal Bari <ebari@cisco.com>
Sun, 25 Jun 2017 11:42:33 +0000 (14:42 +0300)
committerJohn Lo <loj@cisco.com>
Tue, 27 Jun 2017 12:41:56 +0000 (12:41 +0000)
commit25ff2ea3a31e422094f6d91eab46222a29a77c4b
treea8249ce452d6af4daa66e09851ae689612286e71
parente2547ab574a82c69482704ef27375f1391deb9af
L2-LEARN:fix l2fib entry seq num not updated on hit (VPP-888)

fixed instability in l2bd_multi_instnce test - sometimes failing with extra
packets captured

it appears l2-learn was not updating hit entries but rather a copy of them.

if the ager did not have a chance to run before the test was running the
learning cycle - entries were not updated with the packet's seq num - causing
packets to flood when hitting the stale seq_num in l2-fwd - hence the extra
packets

fixed handling of filter entries

revert workaround for instability in test

Change-Id: I16d918e6310a5bf40bad5b7335b2140c2867cb71
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/vnet/l2/l2_api.c
src/vnet/l2/l2_fib.c
src/vnet/l2/l2_fib.h
src/vnet/l2/l2_input.c
src/vnet/l2/l2_learn.c
test/test_l2bd_multi_instance.py