From: Srujana Challa Date: Wed, 18 Aug 2021 11:56:35 +0000 (+0530) Subject: common/cnxk: fix attaching NPA LF to CPT VF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0489d2606479d610aaec9e5c79a774cbdafd880c;p=dpdk.git 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 --- 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;