Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 75f36270990c ("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>

authored by

Geetha sowjanya and committed by
Paolo Abeni
8fcd7c7b 2033ab90

+3 -2
+3 -2
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
··· 1454 1454 if (err) 1455 1455 goto err_free_npa_lf; 1456 1456 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); 1459 1460 1460 1461 /* Init Auras and pools used by NIX RQ, for free buffer ptrs */ 1461 1462 err = otx2_rq_aura_pool_init(pf);