[13/21] common/cnxk: set relchan in TL4 config for each SDP queue
Checks
Commit Message
From: Veerasenareddy Burru <vburru@marvell.com>
set distinct relchan in each TL4 queue connected to SDP.
currently rechan in TL4 SDP config is getting set to 0 for all
SDP-NIX queues.
Each TL4 queues for SDP need to be configured with distinct channel
for SDP to provide per channel backpressure to NIX.
Signed-off-by: Veerasenareddy Burru <vburru@marvell.com>
---
drivers/common/cnxk/roc_nix_tm_utils.c | 1 +
1 file changed, 1 insertion(+)
@@ -582,6 +582,7 @@ nix_tm_topology_reg_prep(struct nix *nix, struct nix_tm_node *node,
/* Configure TL4 to send to SDP channel instead of CGX/LBK */
if (nix->sdp_link) {
+ relchan = nix->tx_chan_base & 0xff;
plt_tm_dbg("relchan=%u schq=%u tx_chan_cnt=%u\n", relchan, schq,
nix->tx_chan_cnt);
reg[k] = NIX_AF_TL4X_SDP_LINK_CFG(schq);