summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat_affinity.h
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2020-09-30 22:24:47 +0200
committerOle Tr�an <otroan@employees.org>2020-10-23 12:09:07 +0000
commit5f4f2081c47a5d86c9c96b7de23a2b0147c737d8 (patch)
treefd80c764cc3deb527f54d289c12a03d85c563373 /src/plugins/nat/nat_affinity.h
parent498889ae5d36eca5e2c017400b70f71bc5cdaf4a (diff)
nat: nat44 enable/disable dynamic config
This patch changes initialization and configuration of NAT plugin. Instead of allocating data structures at vpp plugin initialization phase allocation and configuration happens after calling enable API or CLI call. This reduces base VPP memory footprint and also enables dynamic reconfiguration of the NAT plugin. Type: improvement Change-Id: I42c069ee19a0311d043ac1f3f230d87bc8d2680f Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_affinity.h')
-rw-r--r--src/plugins/nat/nat_affinity.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/nat/nat_affinity.h b/src/plugins/nat/nat_affinity.h
index 358e682eb49..d6bda6a8ee1 100644
--- a/src/plugins/nat/nat_affinity.h
+++ b/src/plugins/nat/nat_affinity.h
@@ -79,6 +79,16 @@ u32 nat_affinity_get_per_service_list_head_index (void);
void nat_affinity_flush_service (u32 affinity_per_service_list_head_index);
/**
+ * @brief NAT affinity enable
+ */
+void nat_affinity_enable ();
+
+/**
+ * @brief NAT affinity disable
+ */
+void nat_affinity_disable ();
+
+/**
* @brief Initialize NAT client-IP based affinity.
*
* @param vm vlib main.