Commit 8fcd7c7b authored by Geetha sowjanya's avatar Geetha sowjanya Committed by Paolo Abeni

octeontx2-pf: Dont allocate BPIDs for LBK interfaces

Current driver enables backpressure for LBK interfaces.
But these interfaces do not support this feature.
Hence, this patch fixes the issue by skipping the
backpressure configuration for these interfaces.

Fixes: 75f36270 ("octeontx2-pf: Support to enable/disable pause frames via ethtool").
Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
Signed-off-by: default avatarSunil Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20230716093741.28063-1-gakula@marvell.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 2033ab90
...@@ -1454,7 +1454,8 @@ static int otx2_init_hw_resources(struct otx2_nic *pf) ...@@ -1454,7 +1454,8 @@ static int otx2_init_hw_resources(struct otx2_nic *pf)
if (err) if (err)
goto err_free_npa_lf; goto err_free_npa_lf;
/* Enable backpressure */ /* Enable backpressure for CGX mapped PF/VFs */
if (!is_otx2_lbkvf(pf->pdev))
otx2_nix_config_bp(pf, true); otx2_nix_config_bp(pf, true);
/* Init Auras and pools used by NIX RQ, for free buffer ptrs */ /* Init Auras and pools used by NIX RQ, for free buffer ptrs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment