simple connection tracking table module for recording flow info and modifying headers of packets forwarded by software
More...
#include "doca_ar_env.h"
#include <cmdline.h>
Go to the source code of this file.
|
#define | MAX_CONNTRACK 1 << 14 |
| maximum connections can be stored in rte_mempool and offloaded into eSwitch
|
|
|
typedef void(* | ExpireCallback) (void *arg) |
| user-defined callback function when expiring connection
|
|
simple connection tracking table module for recording flow info and modifying headers of packets forwarded by software
- Author
- Mark Chen (markc.nosp@m.hen7.nosp@m.7888@.nosp@m.gmai.nosp@m.l.com)
- Version
- 1.0
- Date
- 2024-01-07
- Copyright
- Copyright (c) 2024
◆ MAX_CONNTRACK
#define MAX_CONNTRACK 1 << 14 |
maximum connections can be stored in rte_mempool and offloaded into eSwitch
◆ ExpireCallback
typedef void(* ExpireCallback) (void *arg) |
user-defined callback function when expiring connection
◆ doca_ar_add_conn()
get conn from mempool and add conn into the conntrack table
- Parameters
-
- Returns
- struct doca_ar_conn*
◆ doca_ar_conntrack_init_env()
int doca_ar_conntrack_init_env |
( |
int | maxConntrack | ) |
|
init connection tracking table and mempool
- Parameters
-
- Returns
- int
◆ doca_ar_del_conn()
void doca_ar_del_conn |
( |
void * | conn | ) |
|
del conn from the conntrack table and put back to mempool
- Parameters
-
◆ doca_ar_dump_conn()
void doca_ar_dump_conn |
( |
struct cmdline * | cl | ) |
|
iterate the whole conntrack table and print all conns info onto cmdline
- Parameters
-
◆ doca_ar_find_conn()
find the conn from conntrack table
- Parameters
-
- Returns
- struct doca_ar_conn*
◆ doca_ar_modify_conn()
void doca_ar_modify_conn |
( |
struct doca_ar_conn * | conn, |
|
|
struct rte_mbuf * | m ) |
modify the sport of conn and offload cksum
- Parameters
-
◆ doca_ar_parse_conn()
pasrse conn match from rte_mbuf
- Parameters
-
- Returns
- int
◆ doca_ar_print_match()
debug api for pring match info
- Parameters
-
◆ __rte_cache_aligned