From patchwork Thu Feb 24 08:35:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Kudurumalla X-Patchwork-Id: 108245 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 54D76A0353; Thu, 24 Feb 2022 09:35:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4286141155; Thu, 24 Feb 2022 09:35:43 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 2DFA84114D; Thu, 24 Feb 2022 09:35:41 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21O7dK5p019877; Thu, 24 Feb 2022 00:35:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=+WAGf1FJl602PCLvf4Yt+MmjtE5AVcl9rk/87Af6xqI=; b=UIg62wblarXXye7OaqQ6BHbhcgz9l3M3Gm3HIMt4E8LkKDi7U+cqQfoBfg4+xFFh5l3h DIxiHV8JMi0NWlf1cOB2Xnc+usfgKfLBXdmaQX9VlItPXB+3M0bCp/EFdOIFfVw3P5nF Z8T7ENhYxPYflNwjuVyZlLk2Os8kbpkq1rFTyL/uHKd593i0xqIAh/6+tMzNbFtYR8Hk r1SF9bN15pufqcWacYwltJVQUbGBLTNBVYru1DYlUgvUfo9hXP5PcKqWoe2vuud1IIuq KafY7mgZYi+uKXkHFTdEVi2pH9es4rp8x0HwX/GET+4Zuv7dvKzoPm1/2QYHb3skLP0Z KQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ee5tpr7e3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 24 Feb 2022 00:35:38 -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; Thu, 24 Feb 2022 00:35:36 -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; Thu, 24 Feb 2022 00:35:35 -0800 Received: from localhost.localdomain (unknown [10.28.48.103]) by maili.marvell.com (Postfix) with ESMTP id 7B57D3F707F; Thu, 24 Feb 2022 00:35:33 -0800 (PST) From: Rakesh Kudurumalla To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Rakesh Kudurumalla , Subject: [PATCH] net/cnxk: update RSS RETA table Date: Thu, 24 Feb 2022 14:05:28 +0530 Message-ID: <20220224083528.3000787-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: WbsxgvoqjNTpvfWyghl0rJ8wT_XA8DSF X-Proofpoint-GUID: WbsxgvoqjNTpvfWyghl0rJ8wT_XA8DSF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-24_01,2022-02-23_01,2022-02-23_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 rss reta table is corrupted during rte_eth_dev_rss_reta_update.This fix restores previous table entries before updating. Fixes: 00242a687de ("net/cnxk: support RETA and RSS hash") Cc: stable@dpdk.org Signed-off-by: Rakesh Kudurumalla Acked-by: Jerin Jacob --- drivers/net/cnxk/cnxk_ethdev_ops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index b0a16f3c56..f4a0562475 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -857,6 +857,8 @@ cnxk_nix_reta_update(struct rte_eth_dev *eth_dev, goto fail; } + roc_nix_rss_reta_get(nix, 0, reta); + /* Copy RETA table */ for (i = 0; i < (int)(dev->nix.reta_sz / RTE_ETH_RETA_GROUP_SIZE); i++) { for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++) {