mempool/octeontx: support capabilities query

Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
This commit is contained in:
Santosh Shukla 2017-10-08 18:10:09 +05:30 committed by Thomas Monjalon
parent e48de68d89
commit 06935a4f45

View File

@ -159,6 +159,16 @@ octeontx_fpavf_get_count(const struct rte_mempool *mp)
return octeontx_fpa_bufpool_free_count(pool);
}
static int
octeontx_fpavf_get_capabilities(const struct rte_mempool *mp,
unsigned int *flags)
{
RTE_SET_USED(mp);
*flags |= (MEMPOOL_F_CAPA_PHYS_CONTIG |
MEMPOOL_F_CAPA_BLK_ALIGNED_OBJECTS);
return 0;
}
static struct rte_mempool_ops octeontx_fpavf_ops = {
.name = "octeontx_fpavf",
.alloc = octeontx_fpavf_alloc,
@ -166,7 +176,7 @@ static struct rte_mempool_ops octeontx_fpavf_ops = {
.enqueue = octeontx_fpavf_enqueue,
.dequeue = octeontx_fpavf_dequeue,
.get_count = octeontx_fpavf_get_count,
.get_capabilities = NULL,
.get_capabilities = octeontx_fpavf_get_capabilities,
.register_memory_area = NULL,
};