aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-16 15:30:15 -0700
committerDave Barach <openvpp@barachs.net>2019-07-17 12:20:50 +0000
commit6e8b811ee409bff97996cd60d2ae04e884fd66d3 (patch)
tree5de28f3fbed978826da91fb5eb77362ebcb1a160
parent2062ec0d67fb83fa25fc938c992a8e882612c777 (diff)
session: move constants definition
Type:refactor Change-Id: Ie4a89ae603cd365b28795c92daa08d5943e692ea Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/session/session_table.h2
-rw-r--r--src/vnet/session/session_types.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session/session_table.h b/src/vnet/session/session_table.h
index bf33d50dda6..4aaa900f0c9 100644
--- a/src/vnet/session/session_table.h
+++ b/src/vnet/session/session_table.h
@@ -55,8 +55,6 @@ typedef struct _session_lookup_table
#define SESSION_TABLE_INVALID_INDEX ((u32)~0)
#define SESSION_LOCAL_TABLE_PREFIX ((u32)~0)
-#define SESSION_INVALID_INDEX ((u32)~0)
-#define SESSION_INVALID_HANDLE ((u64)~0)
#define SESSION_DROP_HANDLE (((u64)~0) - 1)
typedef int (*ip4_session_table_walk_fn_t) (clib_bihash_kv_16_8_t * kvp,
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h
index 21188bb0308..1c03aa25672 100644
--- a/src/vnet/session/session_types.h
+++ b/src/vnet/session/session_types.h
@@ -19,6 +19,9 @@
#include <svm/svm_fifo.h>
#include <vnet/session/transport_types.h>
+#define SESSION_INVALID_INDEX ((u32)~0)
+#define SESSION_INVALID_HANDLE ((u64)~0)
+
#define foreach_session_endpoint_fields \
foreach_transport_endpoint_cfg_fields \
_(u8, transport_proto) \