cnat: reduce compile time 24/29724/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Mon, 2 Nov 2020 16:29:52 +0000 (17:29 +0100)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 5 Nov 2020 16:47:38 +0000 (16:47 +0000)
commit38049e48a7a8da115f555bbb476b0fdbfb9cbb76
tree1d7db4dde8e977a36eaf28cc5a57fcbf7b92573a
parente019cacbe2399fadd41b3f22b6837431dd631e2a
cnat: reduce compile time

Compile time reduced from ~30s to 2s for
cnat_node_vip.c & cnat_node_snat.c This doesn't
impact performance for now as ts update rwlock
is the main bottleneck.

Type: improvement

Change-Id: Ic92df300ae0dfddc5235c350bd021e73e7c850d9
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/plugins/cnat/cnat_node_snat.c
src/plugins/cnat/cnat_node_vip.c