From patchwork Wed Aug 18 11:49:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srujana Challa X-Patchwork-Id: 97042 X-Patchwork-Delegate: thomas@monjalon.net 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 5F28BA0C4C; Wed, 18 Aug 2021 13:49:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E9444069E; Wed, 18 Aug 2021 13:49:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 13EBA40151 for ; Wed, 18 Aug 2021 13:49:48 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17IBVhAF022059; Wed, 18 Aug 2021 04:49:48 -0700 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=MkA5Tlg7ObjrPZ1C29pAxwSc3Mjzy/eS53AR/dm1gfU=; b=i6PnArrwRRtg9q5QnIaeFxHV/XAJmiRHJH/FeHmxhbdfx8Y5c0iICkMmiHRr2KxQomVo QuebshDB1V6FtcONT3DhHUNfHOa4p6+6AKLU2iAUxK3rDr4jA1fA5IIl2CeX2e1a9pDh fGGGuA4LQJKq0I7GRZ4qGRsPcylG2mHYGlRSCLI7rVcIEef8qH6TGNecfN2R/8d5if3N 0oJkEptgQpTrwKMIEwD1q5bfKTwsHhKeYtpZe86sVh1Q2AgpSlO0p3HE1/iAd1b50ZRO d8RaNwyTAxWcl8W3JBx42wCV4JANkALurM5GF15kpRWcSsg1nwHmAX5MeJE2e1U7VfA7 dw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3agvat97yc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 18 Aug 2021 04:49:48 -0700 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.18; Wed, 18 Aug 2021 04:49:45 -0700 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.18 via Frontend Transport; Wed, 18 Aug 2021 04:49:45 -0700 Received: from localhost.localdomain (unknown [10.28.36.175]) by maili.marvell.com (Postfix) with ESMTP id 4A78A3F7043; Wed, 18 Aug 2021 04:49:43 -0700 (PDT) From: Srujana Challa To: , CC: , , , , , , Date: Wed, 18 Aug 2021 17:19:41 +0530 Message-ID: <20210818114941.3526183-1-schalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: C6NRUvSx9hYuOmIm5SwRTLiwWCvNyTw5 X-Proofpoint-GUID: C6NRUvSx9hYuOmIm5SwRTLiwWCvNyTw5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-18_04,2021-08-17_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH] common/cnxk: fix attaching NPA LF to CPT VF 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 Sender: "dev" ATTACH_RESOURCES mailbox for CPT LFs is being called without setting modify bit. Because of this previously attached NPA LF to the CPT VF is getting removed, when only CPT VF is whitelisted. This patch patch fixes the same. Fixes: c045d2e5cbbc ("common/cnxk: add CPT configuration") Signed-off-by: Srujana Challa --- drivers/common/cnxk/roc_cpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c index 2ffd271566..60a68876b0 100644 --- a/drivers/common/cnxk/roc_cpt.c +++ b/drivers/common/cnxk/roc_cpt.c @@ -478,7 +478,7 @@ roc_cpt_dev_configure(struct roc_cpt *roc_cpt, int nb_lf) int rc, i; /* Request LF resources */ - rc = cpt_lfs_attach(&cpt->dev, blkaddr, false, nb_lf); + rc = cpt_lfs_attach(&cpt->dev, blkaddr, true, nb_lf); if (rc) return rc;