Commit 9ac8d0c6 authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Jakub Kicinski
Browse files

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: a7ef63db ("octeontx2-af: Disable backpressure between CPT and NIX")
Signed-off-by: default avatarHariprasad Kelam <hkelam@marvell.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250617063403.3582210-1-hkelam@marvell.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 28c0d775
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1822,7 +1822,7 @@ int otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable)
		req->chan_cnt = IEEE_8021QAZ_MAX_TCS;
		req->bpid_per_chan = 1;
	} else {
		req->chan_cnt = 1;
		req->chan_cnt = pfvf->hw.rx_chan_cnt;
		req->bpid_per_chan = 0;
	}

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