From 2082835fea3ccd85e7368327d5baa749be01b537 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Tue, 13 Oct 2020 17:26:47 +0200 Subject: cnat: allow max_u16 translation backends Type: fix Allow for 65536 backends for a translation. - use u32 instead of u8 - filter out back_walk with more than FIB_PATH_LIST_POPULAR backends - we're still limited by u16 lb_n_buckets in src/vnet/dpo/load_balance.h Change-Id: Ib37b958e59b25ef5ef9f92b82008d626860faddd Signed-off-by: Nathan Skrzypczak --- src/plugins/cnat/cnat_translation.h | 5 +++++ 1 file changed, 5 insertions(+) (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 cfcbf5bc13b..a4ae1ece718 100644 --- a/src/plugins/cnat/cnat_translation.h +++ b/src/plugins/cnat/cnat_translation.h @@ -58,7 +58,12 @@ typedef struct cnat_ep_trk_t_ typedef enum cnat_translation_flag_t_ { + /* Do allocate a source port */ CNAT_TRANSLATION_FLAG_ALLOCATE_PORT = (1 << 0), + /* Has this translation been satcked ? + * this allow not being called twice when + * with more then FIB_PATH_LIST_POPULAR backends */ + CNAT_TRANSLATION_STACKED = (1 << 1), } cnat_translation_flag_t; typedef enum -- cgit 1.2.3-korg