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:
parent
e30c01fbcd
commit
ae8fb811a3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user