Skip to content

Commit bccb798

Browse files
Hariprasad Kelamdavem330
authored andcommitted
octeontx2-pf: Fix transmit scheduler resource leak
Inorder to support shaping and scheduling, Upon class creation Netdev driver allocates trasmit schedulers. The previous patch which added support for Round robin scheduling has a bug due to which driver is not freeing transmit schedulers post class deletion. This patch fixes the same. Fixes: 47a9656 ("octeontx2-pf: htb offload support for Round Robin scheduling") Signed-off-by: Hariprasad Kelam <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 059a49a commit bccb798

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ static void otx2_qos_read_txschq_cfg_tl(struct otx2_qos_node *parent,
382382
otx2_qos_read_txschq_cfg_tl(node, cfg);
383383
cnt = cfg->static_node_pos[node->level];
384384
cfg->schq_contig_list[node->level][cnt] = node->schq;
385+
cfg->schq_index_used[node->level][cnt] = true;
385386
cfg->schq_contig[node->level]++;
386387
cfg->static_node_pos[node->level]++;
387388
otx2_qos_read_txschq_cfg_schq(node, cfg);

0 commit comments

Comments
 (0)