From 27647a27c7b1e800547e3a3ea97b099b25618177 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Thu, 25 Feb 2021 11:01:41 +0100 Subject: cnat: fixes & prepare maglev Notable changes: - ip[46]-cnat-snat is renamed to cnat-snat-ip[46] - indent fixes - common trace primitives - bihash is now 40_56 with alias Type: refactor Change-Id: I0a82cfe3b40efd96473e51061d7135ffe412ddfc Signed-off-by: Nathan Skrzypczak --- src/plugins/cnat/cnat_translation.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/plugins/cnat/cnat_translation.h') diff --git a/src/plugins/cnat/cnat_translation.h b/src/plugins/cnat/cnat_translation.h index 7a035814544..8bec7396050 100644 --- a/src/plugins/cnat/cnat_translation.h +++ b/src/plugins/cnat/cnat_translation.h @@ -25,6 +25,11 @@ */ extern vlib_combined_counter_main_t cnat_translation_counters; +typedef enum cnat_trk_flag_t_ +{ + CNAT_TRK_ACTIVE = (1 << 0), +} cnat_trk_flag_t; + /** * Data used to track an EP in the FIB */ @@ -53,7 +58,7 @@ typedef struct cnat_ep_trk_t_ /** * Allows to disable if not resolved yet */ - u8 is_active; + u8 ct_flags; /* cnat_trk_flag_t */ } cnat_ep_trk_t; typedef enum cnat_translation_flag_t_ @@ -129,6 +134,11 @@ typedef struct cnat_translation_t_ */ cnat_ep_trk_t *ct_paths; + /** + * The vector of active tracked back-ends + */ + cnat_ep_trk_t *ct_active_paths; + /** * The ip protocol for the translation */ -- cgit 1.2.3-korg