Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: nat44 enable/disable dynamic config
[vpp.git]
/
src
/
plugins
/
nat
/
nat_ha.h
diff --git
a/src/plugins/nat/nat_ha.h
b/src/plugins/nat/nat_ha.h
index
ec62789
..
92fc337
100644
(file)
--- a/
src/plugins/nat/nat_ha.h
+++ b/
src/plugins/nat/nat_ha.h
@@
-38,11
+38,16
@@
typedef void (*nat_ha_sref_cb_t) (ip4_address_t * out_addr, u16 out_port,
u8 proto, u32 fib_index, u32 total_pkts,
u64 total_bytes, u32 thread_index);
u8 proto, u32 fib_index, u32 total_pkts,
u64 total_bytes, u32 thread_index);
+/**
+ * @brief Enable NAT HA, set callbacks
+ */
+void nat_ha_enable (nat_ha_sadd_cb_t sadd_cb, nat_ha_sdel_cb_t sdel_cb,
+ nat_ha_sref_cb_t sref_cb);
+
/**
* @brief Initialize NAT HA
*/
/**
* @brief Initialize NAT HA
*/
-void nat_ha_init (vlib_main_t * vm, nat_ha_sadd_cb_t sadd_cb,
- nat_ha_sdel_cb_t sdel_cb, nat_ha_sref_cb_t sref_cb);
+void nat_ha_init (vlib_main_t * vm, u32 num_workers, u32 num_threads);
/**
* @brief Set HA listener (local settings)
/**
* @brief Set HA listener (local settings)