From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E50A2A034F; Mon, 7 Feb 2022 08:31:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29C09411C9; Mon, 7 Feb 2022 08:30:30 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 8D524411B8 for ; Mon, 7 Feb 2022 08:30:28 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 216LsOhO030467 for ; Sun, 6 Feb 2022 23:30:28 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=w6CCjH3LCbOpkj3vri6byzmFRYcsWGPypfYjiRGT5Uo=; b=R5E9iTyzLaJSnXqhEsIH+YIDK+oXQkKZjx4RcsbMc4atmvSABsAqL6fSUHZ4lPU8Cla3 wzHDGFcUa71HH8r9J081mIj6kZ2uogBimA3F7vgJRmPTBzVivwAUZY8N0+wBncPpxugr 5+VZbGaW98EtwsJbj89xFL6CQM9gJhgQP24vgb2riS811IACkaLZ6lCWRlDNKRQyK/s4 CWMJL8bl+V3txuiJagqFI5CiLPjVKNN97IQdOrdkoTn2Cl7FeLPOTSsSVQhmW1baeWyn 46Q7XqxPIPEPnJEFo5d5Vm7c5VHu7w1hkRqccBBBEArG14TwmqCpO8jDGzVUvuHdLAkI /g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e1smr4p5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 06 Feb 2022 23:30:27 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 6 Feb 2022 23:30:25 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 6 Feb 2022 23:30:25 -0800 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id E2E243F7063; Sun, 6 Feb 2022 23:30:23 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: Subject: [PATCH 14/20] net/cnxk: realloc inline dev XAQ for security Date: Mon, 7 Feb 2022 12:59:26 +0530 Message-ID: <20220207072932.22409-14-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220207072932.22409-1-ndabilpuram@marvell.com> References: <20220207072932.22409-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: A8B54EQt7GgQHySp1UIY2WW5GprIkhXG X-Proofpoint-ORIG-GUID: A8B54EQt7GgQHySp1UIY2WW5GprIkhXG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-07_02,2022-02-03_01,2021-12-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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 9ede66e..9a1f97b 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.8.4