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 B90DF440A7 for ; Thu, 23 May 2024 16:53:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F7CD402F0; Thu, 23 May 2024 16:53:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 94EED4026C; Thu, 23 May 2024 16:53:47 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44N4d7JV003006; Thu, 23 May 2024 07:53:46 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=d m7L0cPZbs/xzDbzYzno/BSxjPGbu7vYjih1Y943W0k=; b=FNNIn8AAkfmN9kp9b kn/GzzIuI+MKp0qTG1ANCgl/7eLoTNtdkvnz+1CeLITpJuFKXDTvviKPwEVOwrPF Sc3GEermlM0cQHho4Vu0sknrCyCDG4ZP8MLy3pIwxvffhUFXvSCMlICvXnPx8mah mxZbGTVLDUh96BBts8pWBMRzaNjR7dETZ9EXiGdcl9N15ajpszXncKKL+qv0xr9T LFiYQmo71ygMUarGLO/F8Kn4XQD3fQwZOditncJMoxsUnmZwrZsn2sqd8iFILZnP ml+XeD7axdsBIT4u00hqozRB2I0apF015wlF1USOM/iSidOwcPQyc0/6VBK3ojR2 SULgQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3y9xy7sxhh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 07:53:28 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 23 May 2024 07:53:27 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 23 May 2024 07:53:27 -0700 Received: from cavium-3070-BM23.. (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id F0C485E6868; Thu, 23 May 2024 07:53:24 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , Subject: [PATCH v2 1/1] net/cnxk: fix RSS config via ethdev configure API Date: Thu, 23 May 2024 20:23:21 +0530 Message-ID: <20240523145321.1238794-1-skori@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410131127.2482240-1-skori@marvell.com> References: <20240410131127.2482240-1-skori@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: b3_t9Yv05VaOLrmRw5rG58g5IIil7vbf X-Proofpoint-GUID: b3_t9Yv05VaOLrmRw5rG58g5IIil7vbf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_09,2024-05-23_01,2024-05-17_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Sunil Kumar Kori Currently user passed RSS configuration is ignored via rte_eth_dev_configure() API. Instead default RSS setup is done by driver. Adding handling for user passed RSS configuration too via rte_eth_dev_configure(). Fixes: b75e0aca84b0 ("net/cnxk: add device configuration operation") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori --- v1..v2: - added Fixes tag. drivers/net/cnxk/cnxk_ethdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index 6b37bd877f..95a3d8aaf9 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/drivers/net/cnxk/cnxk_ethdev.c @@ -1384,6 +1384,13 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev) goto free_nix_lf; } + /* Overwrite default RSS setup if requested by user */ + rc = cnxk_nix_rss_hash_update(eth_dev, &conf->rx_adv_conf.rss_conf); + if (rc) { + plt_err("Failed to configure rss rc=%d", rc); + goto free_nix_lf; + } + /* Init the default TM scheduler hierarchy */ rc = roc_nix_tm_init(nix); if (rc) { -- 2.34.1