From 02fae975edf31460d0838a86b30c4ce72f00220b Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Tue, 5 Nov 2024 10:21:03 +0800 Subject: OMPUB-1508 For tunnel traffic, asymmetric traffic, and traffic matching the "no intercept" policy, only a session ID index flow table is created --- common/include/tfe_session_table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/include/tfe_session_table.h') diff --git a/common/include/tfe_session_table.h b/common/include/tfe_session_table.h index 5fa3b78..6fbddfb 100644 --- a/common/include/tfe_session_table.h +++ b/common/include/tfe_session_table.h @@ -21,6 +21,7 @@ struct session_node uint64_t session_id; /* first key */ struct tuple4 session_addr; /* second key */ + uint8_t is_session_id_only_key; void *val_data; fn_free_cb *val_freecb; @@ -39,7 +40,7 @@ uint64_t session_table_count(struct session_table *table); // val_data : shallow copy (malloc by user, free by val_freecb) // return 0 : suceess // return -1 : key exists -int session_table_insert(struct session_table *table, uint64_t session_id, const struct tuple4 *session_addr, void *val_data, const fn_free_cb *val_freecb); +int session_table_insert(struct session_table *table, uint8_t is_session_id_only_key, uint64_t session_id, const struct tuple4 *session_addr, void *val_data, const fn_free_cb *val_freecb); // return 0 : success // return -1 : key not exists -- cgit v1.2.3