From: Rakesh Kudurumalla <rkuduruma...@marvell.com>

no action is taken when application calls
rte_eth_dev_flow_ctrl_get(), for sdp port
which is inline with rte_eth_dev_flow_ctrl_set()
for sdp port

Signed-off-by: Rakesh Kudurumalla <rkuduruma...@marvell.com>
---
 drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c 
b/drivers/net/cnxk/cnxk_ethdev_ops.c
index 8f7287161b..a6ab493626 100644
--- a/drivers/net/cnxk/cnxk_ethdev_ops.c
+++ b/drivers/net/cnxk/cnxk_ethdev_ops.c
@@ -212,6 +212,9 @@ cnxk_nix_flow_ctrl_get(struct rte_eth_dev *eth_dev,
        struct roc_nix *nix = &dev->nix;
        int mode;
 
+       if (roc_nix_is_sdp(nix))
+               return 0;
+
        mode = roc_nix_fc_mode_get(nix);
        if (mode < 0)
                return mode;
-- 
2.25.1

Reply via email to