summaryrefslogtreecommitdiff
path: root/drivers/mempool
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@nxp.com>2018-01-17 17:09:12 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2018-01-19 16:09:56 +0100
commit7b6edb640b735f4a9807b78812c81eacebff5528 (patch)
tree7718c28880fdf21081528e990c5732d50aaf9b20 /drivers/mempool
parent7c9e094fe5fc361e9c1780b8f917c1cb82a20afd (diff)
downloaddpdk-7b6edb640b735f4a9807b78812c81eacebff5528.zip
dpdk-7b6edb640b735f4a9807b78812c81eacebff5528.tar.gz
dpdk-7b6edb640b735f4a9807b78812c81eacebff5528.tar.xz
event/dpaa2: have separate structure to hold dqrr entries
This patch provides cleaner approach to store the DQRR entries, which are yet to be consumed in case of atomic queues. Also, this patch changes the storage of the DQRR entry index into the mbuf->seqn instead of ev->opaque Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Diffstat (limited to 'drivers/mempool')
-rw-r--r--drivers/mempool/dpaa2/dpaa2_hw_mempool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.h b/drivers/mempool/dpaa2/dpaa2_hw_mempool.h
index 3390d67..4d34687 100644
--- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.h
+++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.h
@@ -10,6 +10,8 @@
#define DPAA2_MAX_BUF_POOLS 8
+#define DPAA2_INVALID_MBUF_SEQN 0
+
struct buf_pool_cfg {
void *addr;
/**< The address from where DPAA2 will carve out the buffers */