2024-04-04 11:29:05

by Hariprasad Kelam

[permalink] [raw]
Subject: [net Patch] 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: 47a9656f168a ("octeontx2-pf: htb offload support for Round Robin scheduling")
Signed-off-by: Hariprasad Kelam <[email protected]>
---
drivers/net/ethernet/marvell/octeontx2/nic/qos.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/qos.c b/drivers/net/ethernet/marvell/octeontx2/nic/qos.c
index 1e77bbf5d22a..1723e9912ae0 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/qos.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/qos.c
@@ -382,6 +382,7 @@ static void otx2_qos_read_txschq_cfg_tl(struct otx2_qos_node *parent,
otx2_qos_read_txschq_cfg_tl(node, cfg);
cnt = cfg->static_node_pos[node->level];
cfg->schq_contig_list[node->level][cnt] = node->schq;
+ cfg->schq_index_used[node->level][cnt] = true;
cfg->schq_contig[node->level]++;
cfg->static_node_pos[node->level]++;
otx2_qos_read_txschq_cfg_schq(node, cfg);
--
2.17.1



2024-04-07 14:50:47

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [net Patch] octeontx2-pf: Fix transmit scheduler resource leak

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

On Thu, 4 Apr 2024 16:54:27 +0530 you wrote:
> 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.
>
> [...]

Here is the summary with links:
- [net] octeontx2-pf: Fix transmit scheduler resource leak
https://git.kernel.org/netdev/net/c/bccb798e07f8

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html