[20/23] net/cnxk: skip PFC configuration on LBK
Checks
Commit Message
From: Satha Rao <skoteshwar@marvell.com>
CNXK platforms do not support PFC on LBK so skipping
configuration on LBK interfaces.
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
---
drivers/net/cnxk/cnxk_ethdev.c | 2 +-
drivers/net/cnxk/cnxk_ethdev_ops.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
@@ -1859,7 +1859,7 @@ cnxk_eth_dev_uninit(struct rte_eth_dev *eth_dev, bool reset)
pfc_conf.tx_pause.rx_qid = i;
rc = cnxk_nix_priority_flow_ctrl_queue_config(eth_dev,
&pfc_conf);
- if (rc)
+ if (rc && rc != -ENOTSUP)
plt_err("Failed to reset PFC. error code(%d)", rc);
}
@@ -356,8 +356,8 @@ cnxk_nix_priority_flow_ctrl_queue_config(struct rte_eth_dev *eth_dev,
return -ENOTSUP;
}
- if (roc_nix_is_sdp(nix)) {
- plt_err("Prio flow ctrl config is not allowed on SDP");
+ if (roc_nix_is_sdp(nix) || roc_nix_is_lbk(nix)) {
+ plt_nix_dbg("Prio flow ctrl config is not allowed on SDP/LBK");
return -ENOTSUP;
}