Skip to content

Commit b7db947

Browse files
Hariprasad KelamPaolo Abeni
authored andcommitted
octeontx2-pf: qos: fix VF root node parent queue index
The current code configures the Physical Function (PF) root node at TL1 and the Virtual Function (VF) root node at TL2. This ensure at any given point of time PF traffic gets more priority. PF root node TL1 / \ TL2 TL2 VF root node / \ TL3 TL3 / \ TL4 TL4 / \ SMQ SMQ Due to a bug in the current code, the TL2 parent queue index on the VF interface is not being configured, leading to 'SMQ Flush' errors Fixes: 5e6808b ("octeontx2-pf: Add support for HTB offload") Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250407070341.2765426-1-hkelam@marvell.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent a1328a6 commit b7db947

File tree

1 file changed

+5
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ static void __otx2_qos_txschq_cfg(struct otx2_nic *pfvf,
165165

166166
otx2_config_sched_shaping(pfvf, node, cfg, &num_regs);
167167
} else if (level == NIX_TXSCH_LVL_TL2) {
168+
/* configure parent txschq */
169+
cfg->reg[num_regs] = NIX_AF_TL2X_PARENT(node->schq);
170+
cfg->regval[num_regs] = (u64)hw->tx_link << 16;
171+
num_regs++;
172+
168173
/* configure link cfg */
169174
if (level == pfvf->qos.link_cfg_lvl) {
170175
cfg->reg[num_regs] = NIX_AF_TL3_TL2X_LINKX_CFG(node->schq, hw->tx_link);

0 commit comments

Comments
 (0)