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 44E3BA0C4C; Wed, 18 Aug 2021 13:56:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCDB54069E; Wed, 18 Aug 2021 13:56:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id AEB7E40151 for ; Wed, 18 Aug 2021 13:56:42 +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 17IBVhAU022059; Wed, 18 Aug 2021 04:56:41 -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=AQI2xM8IYwxDUc0tGgMEB7je9ZvYE2JdEWPTB5vJBic=; b=gsucBRz8xUcLuQwuR5aNqTNch6M4EBWv+0flLsdrS0BbYUikJfkdOkPmhllBFJbsbpBY psy6h//l704xXnXADJ9YQ/GLr3Gay6vKY607Gdh4V1rE62tHc9G6t8QRuExlYE5Qtdx2 Q/rFNJHkWJzTVg4YJrLTHcpZibsCG+xT0185n2Ui1csXiw6yQINCRRzWBMy7GAweGxai /N4FCqPSVhZuc2QC2AhY92OjhoVOA4TNpCHNw0UPrGI+yONFdzldYeOb+snOdQO7wHps h+0Onrouus16PxB41Sl24+vti672VHUFZqBkpYBsVMXPv9lwXzAYw5Va0+zenje7XdWk xQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3agvat98rk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 18 Aug 2021 04:56:41 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 18 Aug 2021 04:56:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 18 Aug 2021 04:56:39 -0700 Received: from localhost.localdomain (unknown [10.28.36.175]) by maili.marvell.com (Postfix) with ESMTP id 4551C3F7043; Wed, 18 Aug 2021 04:56:37 -0700 (PDT) From: Srujana Challa To: , CC: , , , , , , Date: Wed, 18 Aug 2021 17:26:35 +0530 Message-ID: <20210818115635.3526239-1-schalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 3eUs0TzXPJ478Fp3YAkUoWfrH4T6MQgw X-Proofpoint-GUID: 3eUs0TzXPJ478Fp3YAkUoWfrH4T6MQgw 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 v2] 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 fixes the same. Fixes: c045d2e5cbbc ("common/cnxk: add CPT configuration") v2: - Fixed checkpatch warning. 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; -- 2.25.1