Skip to contentSkip to conversation

common/cnxk: fix attaching NPA LF to CPT VF

PATCH Applied Srujana Challa 2 participants 2 messages Aug 18, 2021 – Sep 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 common/cnxk: fix attaching NPA LF to CPT VF

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.

---
 drivers/common/cnxk/roc_cpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/common/cnxk/roc_cpt.c +1 -1
index 2ffd271566..60a68876b0 100644
@@ -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;
 
Signature · 1 line
2.25.1
Acked-by on v2 1/1 Applied
#1 lore raw
Quoted 9 lines

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.

Changelog should be mentioned after ---

Applied to dpdk-next-crypto

Quoted 23 lines
---
 drivers/common/cnxk/roc_cpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/common/cnxk/roc_cpt.c +1 -2
index 2ffd271566..60a68876b0 100644
@@ -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