aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_l4p/tcp_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtle_l4p/tcp_stream.h')
-rw-r--r--lib/libtle_l4p/tcp_stream.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/libtle_l4p/tcp_stream.h b/lib/libtle_l4p/tcp_stream.h
index 4629fe6..1bb2a42 100644
--- a/lib/libtle_l4p/tcp_stream.h
+++ b/lib/libtle_l4p/tcp_stream.h
@@ -150,11 +150,34 @@ struct sdr {
STAILQ_HEAD(, tle_stream) be;
};
+/* tempalte sizes/offsets/etc. for tcp stream */
+struct stream_szofs {
+ uint32_t size;
+ struct {
+ uint32_t ofs;
+ uint32_t nb_obj;
+ uint32_t nb_max;
+ } ofo;
+ struct {
+ uint32_t ofs;
+ uint32_t nb_obj;
+ } rxq, txq;
+ struct {
+ uint32_t ofs;
+ uint32_t blk_sz;
+ uint32_t rng_sz;
+ uint32_t nb_rng;
+ uint32_t nb_obj;
+ uint32_t nb_max;
+ } drb;
+};
+
struct tcp_streams {
struct stbl st;
struct tle_timer_wheel *tmr; /* timer wheel */
struct rte_ring *tsq; /* to-send streams queue */
struct sdr dr; /* death row for zombie streams */
+ struct stream_szofs szofs; /* size and offsets for stream data */
struct tle_tcp_stream s[]; /* array of allocated streams. */
};