net/cnxk: skip PFC configuration on LBK

CNXK platforms do not support PFC on LBK so skipping
configuration on LBK interfaces.

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
This commit is contained in:
Satha Rao 2022-09-12 18:44:15 +05:30 committed by Jerin Jacob
parent e30c01fbcd
commit ae8fb811a3
2 changed files with 3 additions and 3 deletions

View File

@ -1855,7 +1855,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);
}

View File

@ -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;
}