Skip to content

Commit 9ac8d0c

Browse files
Hariprasad Kelamkuba-moo
authored andcommitted
Octeontx2-pf: Fix Backpresure configuration
NIX block can receive packets from multiple links such as MAC (RPM), LBK and CPT. ----------------- RPM --| NIX | ----------------- | | LBK Each link supports multiple channels for example RPM link supports 16 channels. In case of link oversubsribe, NIX will assert backpressure on receive channels. The previous patch considered a single channel per link, resulting in backpressure not being enabled on the remaining channels Fixes: a7ef63d ("octeontx2-af: Disable backpressure between CPT and NIX") Signed-off-by: Hariprasad Kelam <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 28c0d77 commit 9ac8d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ int otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable)
18221822
req->chan_cnt = IEEE_8021QAZ_MAX_TCS;
18231823
req->bpid_per_chan = 1;
18241824
} else {
1825-
req->chan_cnt = 1;
1825+
req->chan_cnt = pfvf->hw.rx_chan_cnt;
18261826
req->bpid_per_chan = 0;
18271827
}
18281828

@@ -1847,7 +1847,7 @@ int otx2_nix_cpt_config_bp(struct otx2_nic *pfvf, bool enable)
18471847
req->chan_cnt = IEEE_8021QAZ_MAX_TCS;
18481848
req->bpid_per_chan = 1;
18491849
} else {
1850-
req->chan_cnt = 1;
1850+
req->chan_cnt = pfvf->hw.rx_chan_cnt;
18511851
req->bpid_per_chan = 0;
18521852
}
18531853

0 commit comments

Comments
 (0)