Skip to content

Commit 8fcd7c7

Browse files
Geetha sowjanyaPaolo Abeni
authored andcommitted
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: 75f3627 ("octeontx2-pf: Support to enable/disable pause frames via ethtool"). Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Link: https://lore.kernel.org/r/20230716093741.28063-1-gakula@marvell.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 2033ab9 commit 8fcd7c7

File tree

1 file changed

+3
-2
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+3
-2
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,8 +1454,9 @@ static int otx2_init_hw_resources(struct otx2_nic *pf)
14541454
if (err)
14551455
goto err_free_npa_lf;
14561456

1457-
/* Enable backpressure */
1458-
otx2_nix_config_bp(pf, true);
1457+
/* Enable backpressure for CGX mapped PF/VFs */
1458+
if (!is_otx2_lbkvf(pf->pdev))
1459+
otx2_nix_config_bp(pf, true);
14591460

14601461
/* Init Auras and pools used by NIX RQ, for free buffer ptrs */
14611462
err = otx2_rq_aura_pool_init(pf);

0 commit comments

Comments
 (0)