Multicore support for vCGN 91/1291/4
authorShesha Sreenivasamurthy <shesha@cisco.com>
Tue, 7 Jun 2016 00:10:20 +0000 (17:10 -0700)
committerDave Barach <openvpp@barachs.net>
Tue, 7 Jun 2016 11:30:34 +0000 (11:30 +0000)
commit30097b5d2270ddf124eb0a03fcd2ad85bab78834
treeb4326d5d2c1b969eeceec6010dfc71bfdecf1ae6
parent97d99518d727d454895f201f1990475c8a738060
Multicore support for vCGN

    Locks are used while populating DB, which is once
    once per entry. Therefore, it is not in the performance
    critical path. Each thread is a PMD, therefore, spin locks
    are used instead of mutexes.

Change-Id: I4bc297f73a8f3eafebed1f00e51ec75ca24163f6
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
vnet/vnet/vcgn/cnat_db_v2.c