struct nix_bp_cfg_rsp *rsp;
int rc = -ENOSPC, i;
- if (roc_nix_is_sdp(roc_nix))
- return 0;
-
if (enable) {
req = mbox_alloc_msg_nix_bp_enable(mbox);
if (req == NULL)
return rc;
req->chan_base = 0;
- if (roc_nix_is_lbk(roc_nix))
+ if (roc_nix_is_lbk(roc_nix) || roc_nix_is_sdp(roc_nix))
req->chan_cnt = NIX_LBK_MAX_CHAN;
else
req->chan_cnt = NIX_CGX_MAX_CHAN;
int
roc_nix_fc_config_get(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
{
- if (roc_nix_is_vf_or_sdp(roc_nix) && !roc_nix_is_lbk(roc_nix))
+ if (!roc_nix_is_pf(roc_nix) && !roc_nix_is_lbk(roc_nix) &&
+ !roc_nix_is_sdp(roc_nix))
return 0;
if (fc_cfg->type == ROC_NIX_FC_CQ_CFG)
int
roc_nix_fc_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)
{
- if (roc_nix_is_vf_or_sdp(roc_nix) && !roc_nix_is_lbk(roc_nix))
+ if (!roc_nix_is_pf(roc_nix) && !roc_nix_is_lbk(roc_nix) &&
+ !roc_nix_is_sdp(roc_nix))
return 0;
if (fc_cfg->type == ROC_NIX_FC_CQ_CFG)
struct cnxk_fc_cfg *fc = &dev->fc_cfg;
int rc;
+ if (roc_nix_is_sdp(&dev->nix))
+ return 0;
+
/* To avoid Link credit deadlock on Ax, disable Tx FC if it's enabled */
if (roc_model_is_cn96_ax() &&
dev->npc.switch_header_type != ROC_PRIV_FLAGS_HIGIG)