From 167817251e56ba4b1f39394b8c92fcb68598f2f3 Mon Sep 17 00:00:00 2001 From: Nithin Dabilpuram Date: Wed, 23 Feb 2022 01:05:05 +0530 Subject: [PATCH] net/cnxk: realloc inline dev XAQ for security Realloc inline dev XAQ when Rx/Tx security ie enabled with new packet pool as XAQ should be large enough to hold all mbufs if inline outbound reports error or all mbufs. Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob --- drivers/net/cnxk/cnxk_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index a2b2679398..a2e7eca416 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/drivers/net/cnxk/cnxk_ethdev.c @@ -545,6 +545,11 @@ cnxk_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid, nb_desc = RTE_MAX(nb_desc, pkt_pool_limit); } + /* Its a no-op when inline device is not used */ + if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY || + dev->tx_offloads & RTE_ETH_TX_OFFLOAD_SECURITY) + roc_nix_inl_dev_xaq_realloc(mp->pool_id); + /* Setup ROC CQ */ cq = &dev->cqs[qid]; cq->qid = qid; -- 2.20.1