From dbfa574a1d5ebb68a81fed20dcd4bb2f47c47066 Mon Sep 17 00:00:00 2001 From: John Lo Date: Sat, 2 Sep 2017 08:27:36 -0400 Subject: Improve L2FIB PDR/NDR performance (VPP-963) 1. Limit MAC entry update per l2-learn call to reduce update burst when wall clock advance to the the next minute so all MAC time stamps are behind current time needing update. 2. Optimize l2-learn node fast path code sequence. 3. Invalidate cache_key when update MAC entry. 4. Change L2 learn hit counter to L2 learn hit-update counter. 5. Increase L2FIB table memory size to 512MB to fit 4M entries 6. Set MAC learn limit at 4M entries Change-Id: I3075ee8fb59645a56850126bac2e3e6d341cef4d Signed-off-by: John Lo --- src/vnet/l2/l2_learn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/l2/l2_learn.h') diff --git a/src/vnet/l2/l2_learn.h b/src/vnet/l2/l2_learn.h index d6f41d40d49..3aaf48e2544 100644 --- a/src/vnet/l2/l2_learn.h +++ b/src/vnet/l2/l2_learn.h @@ -46,7 +46,7 @@ typedef struct vnet_main_t *vnet_main; } l2learn_main_t; -#define L2LEARN_DEFAULT_LIMIT (L2FIB_NUM_BUCKETS * 128) +#define L2LEARN_DEFAULT_LIMIT (L2FIB_NUM_BUCKETS * 64) l2learn_main_t l2learn_main; -- cgit 1.2.3-korg