From 47eb00f25ab06a699dc27507814c7656940340af Mon Sep 17 00:00:00 2001 From: Konstantin Ananyev Date: Fri, 25 Oct 2019 11:56:34 +0100 Subject: v6 rework TCP stream allocation Allocate TCP stream and all necessary metadata (RX/TX queues, OFO queue, DRBs, etc.) as one big buffer, instead of separate alloc() calls for each of the sub-components. Signed-off-by: Konstantin Ananyev Change-Id: Idc9f3e9329920dfb34916f9bff28664ee5e99a42 --- lib/libtle_l4p/tcp_ofo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libtle_l4p/tcp_ofo.h') diff --git a/lib/libtle_l4p/tcp_ofo.h b/lib/libtle_l4p/tcp_ofo.h index 9d88266..6cb5e3f 100644 --- a/lib/libtle_l4p/tcp_ofo.h +++ b/lib/libtle_l4p/tcp_ofo.h @@ -289,11 +289,11 @@ _ofodb_enqueue(struct rte_ring *r, const struct ofodb *db, uint32_t *seq) return num - n; } -struct ofo * -tcp_ofo_alloc(uint32_t nbufs, int32_t socket); +void +tcp_ofo_calc_elems(uint32_t nbufs, uint32_t *nobj, uint32_t *ndb, uint32_t *sz); void -tcp_ofo_free(struct ofo *ofo); +tcp_ofo_init(struct ofo *ofo, uint32_t nobj, uint32_t ndb); #ifdef __cplusplus } -- cgit 1.2.3-korg