diff options
| author | wangmenglan <[email protected]> | 2024-11-05 10:21:03 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2024-11-05 10:21:03 +0800 |
| commit | 02fae975edf31460d0838a86b30c4ce72f00220b (patch) | |
| tree | 64bea6e74ea65615c3288a5415348c78273307d6 /common/include | |
| parent | d2b7d30e96e81666f1563f27ae891ee0cf1fb84c (diff) | |
OMPUB-1508 For tunnel traffic, asymmetric traffic, and traffic matching the "no intercept" policy, only a session ID index flow table is createdv4.8.84-20241105dev-24.02
Diffstat (limited to 'common/include')
| -rw-r--r-- | common/include/tfe_session_table.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
