DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2] common/cnxk: fix attaching NPA LF to CPT VF
@ 2021-08-18 11:56 Srujana Challa
  2021-09-08 12:06 ` Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Srujana Challa @ 2021-08-18 11:56 UTC (permalink / raw)
  To: gakhil, thomas
  Cc: dev, anoobj, jerinj, ndabilpuram, kirankumark, skori, skoteshwar

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 <schalla@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-08 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 11:56 [dpdk-dev] [PATCH v2] common/cnxk: fix attaching NPA LF to CPT VF Srujana Challa
2021-09-08 12:06 ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).