aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_l4p/tcp_ofo.h
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2019-10-25 11:56:34 +0100
committerKonstantin Ananyev <konstantin.ananyev@intel.com>2019-12-31 11:42:47 +0000
commit47eb00f25ab06a699dc27507814c7656940340af (patch)
tree2ba4120a03e8a7e34a582266150e4a2a6d25b802 /lib/libtle_l4p/tcp_ofo.h
parent703faabf2d44d245fe1dd0b75f1736bf6114a557 (diff)
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 <konstantin.ananyev@intel.com> Change-Id: Idc9f3e9329920dfb34916f9bff28664ee5e99a42
Diffstat (limited to 'lib/libtle_l4p/tcp_ofo.h')
-rw-r--r--lib/libtle_l4p/tcp_ofo.h6
1 files changed, 3 insertions, 3 deletions
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
}