From: Ashwin Sekhar T K <asek...@marvell.com>

Initialize mempool ops for cn20k.

Signed-off-by: Ashwin Sekhar T K <asek...@marvell.com>
---
 drivers/mempool/cnxk/cnxk_mempool_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mempool/cnxk/cnxk_mempool_ops.c 
b/drivers/mempool/cnxk/cnxk_mempool_ops.c
index a1aeaee746..bb35e2d1d2 100644
--- a/drivers/mempool/cnxk/cnxk_mempool_ops.c
+++ b/drivers/mempool/cnxk/cnxk_mempool_ops.c
@@ -192,7 +192,7 @@ cnxk_mempool_plt_init(void)
 
        if (roc_model_is_cn9k()) {
                rte_mbuf_set_platform_mempool_ops("cn9k_mempool_ops");
-       } else if (roc_model_is_cn10k()) {
+       } else if (roc_model_is_cn10k() || roc_model_is_cn20k()) {
                rte_mbuf_set_platform_mempool_ops("cn10k_mempool_ops");
                rc = cn10k_mempool_plt_init();
        }
-- 
2.34.1

Reply via email to