Improve L2FIB PDR/NDR performance (VPP-963) 43/8243/2
authorJohn Lo <loj@cisco.com>
Wed, 30 Aug 2017 08:23:43 +0000 (04:23 -0400)
committerJohn Lo <loj@cisco.com>
Fri, 1 Sep 2017 11:07:04 +0000 (07:07 -0400)
commit484d406a19b9cde41e3ffaed6fac4e8c099d4e06
tree175473f8bf12c2cc016481b7c17dd0d54976cee7
parentce9714032d36d18abe72981552219dff871ff392
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.
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: I19572f7f8a4b42a01be025a609fb03af50af16b2
Signed-off-by: John Lo <loj@cisco.com>
src/vnet/l2/l2_fib.h
src/vnet/l2/l2_learn.c