[8/9] net/cnxk: make flow control op for SDP as no-op
Checks
Commit Message
From: Rakesh Kudurumalla <rkudurumalla@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 <rkudurumalla@marvell.com>
---
drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++
1 file changed, 3 insertions(+)
@@ -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;