[PATCH] common/cnxk: fix loopback port dataflow issue
Rahul Bhansali
rbhansali at marvell.com
Mon Mar 4 13:33:35 CET 2024
With loopback interface and IPsec Inbound traffic, getting
NIX_CQERRINT_CPT_DROP interrupt and dataflow is stopped.
This is due to flow control configuration is skipped as
roc_nix_is_esw() returns true for loopback device also.
Fixes: 978dc3a13f7b ("common/cnxk: base support for eswitch VF")
Fixes: f812768a9e66 ("net/cnxk: support eswitch VF as ethernet device")
Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
---
drivers/common/cnxk/roc_nix.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_nix.c b/drivers/common/cnxk/roc_nix.c
index 20202788b5..041621dfaa 100644
--- a/drivers/common/cnxk/roc_nix.c
+++ b/drivers/common/cnxk/roc_nix.c
@@ -385,8 +385,9 @@ sdp_lbk_id_update(struct plt_pci_device *pci_dev, struct nix *nix)
nix->sdp_link = true;
break;
case PCI_DEVID_CNXK_RVU_AF_VF:
- case PCI_DEVID_CNXK_RVU_ESWITCH_VF:
nix->lbk_link = true;
+ break;
+ case PCI_DEVID_CNXK_RVU_ESWITCH_VF:
nix->esw_link = true;
break;
default:
--
2.25.1
More information about the dev
mailing list