From 0489d2606479d610aaec9e5c79a774cbdafd880c Mon Sep 17 00:00:00 2001 From: Srujana Challa Date: Wed, 18 Aug 2021 17:26:35 +0530 Subject: [PATCH] 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") Cc: stable@dpdk.org Signed-off-by: Srujana Challa Acked-by: Akhil Goyal --- 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 5e35d1bdda..33524ef504 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.20.1