mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
octeontx2-pf: Dont allocate BPIDs for LBK interfaces
[ Upstream commit8fcd7c7b3a
] 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:75f3627099
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8893c85d26
commit
173ad637bb
1 changed files with 3 additions and 2 deletions
|
@ -1430,8 +1430,9 @@ static int otx2_init_hw_resources(struct otx2_nic *pf)
|
|||
if (err)
|
||||
goto err_free_npa_lf;
|
||||
|
||||
/* Enable backpressure */
|
||||
otx2_nix_config_bp(pf, true);
|
||||
/* Enable backpressure for CGX mapped PF/VFs */
|
||||
if (!is_otx2_lbkvf(pf->pdev))
|
||||
otx2_nix_config_bp(pf, true);
|
||||
|
||||
/* Init Auras and pools used by NIX RQ, for free buffer ptrs */
|
||||
err = otx2_rq_aura_pool_init(pf);
|
||||
|
|
Loading…
Add table
Reference in a new issue