diff options
author | Jianfeng Tan <henry.tjf@antfin.com> | 2019-11-18 06:59:50 +0000 |
---|---|---|
committer | Jianfeng Tan <henry.tjf@antfin.com> | 2020-03-05 01:31:33 +0800 |
commit | 78c896b3b3127515478090c19447e27dc406427e (patch) | |
tree | d6d67d4683e9ca0409f9984a834547a572fb5310 /lib/libtle_l4p/udp_stream.h | |
parent | e4380f4866091fd92a7a57667dd938a99144f9cd (diff) |
TLDKv2dev-next-socket
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Signed-off-by: Jielong Zhou <jielong.zjl@antfin.com>
Signed-off-by: Jian Zhang <wuzai.zj@antfin.com>
Signed-off-by: Chen Zhao <winters.zc@antfin.com>
Change-Id: I55c39de4c6cd30f991f35631eb507f770230f08e
Diffstat (limited to 'lib/libtle_l4p/udp_stream.h')
-rw-r--r-- | lib/libtle_l4p/udp_stream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libtle_l4p/udp_stream.h b/lib/libtle_l4p/udp_stream.h index a950e56..55a66f8 100644 --- a/lib/libtle_l4p/udp_stream.h +++ b/lib/libtle_l4p/udp_stream.h @@ -24,6 +24,7 @@ #include "osdep.h" #include "ctx.h" #include "stream.h" +#include "stream_table.h" #ifdef __cplusplus extern "C" { @@ -41,6 +42,7 @@ union udph { struct tle_udp_stream { struct tle_stream s; + struct stbl_entry *ste; /* entry in streams table. */ struct { struct rte_ring *q; @@ -63,6 +65,13 @@ struct tle_udp_stream { struct tle_udp_stream_param prm; } __rte_cache_aligned; +struct udp_streams { + struct stbl st; +}; + +#define CTX_UDP_STREAMS(ctx) ((struct udp_streams *)(ctx)->streams.buf) +#define CTX_UDP_STLB(ctx) (&CTX_UDP_STREAMS(ctx)->st) + #define UDP_STREAM(p) \ ((struct tle_udp_stream *)((uintptr_t)(p) - offsetof(struct tle_udp_stream, s))) |