Octeontx2-pf: Free send queue buffers incase of leaf to inner
authorHariprasad Kelam <hkelam@marvell.com>
Thu, 23 May 2024 07:36:26 +0000 (13:06 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 27 May 2024 09:55:47 +0000 (11:55 +0200)
commit1684842147677a1279bcff95f8adb6de9a656e30
treee04723417993ccbbaf6bdb08e59e86aab8118094
parent51d1b25a720982324871338b1a36b197ec9bd6f0
Octeontx2-pf: Free send queue buffers incase of leaf to inner

There are two type of classes. "Leaf classes" that are  the
bottom of the class hierarchy. "Inner classes" that are neither
the root class nor leaf classes. QoS rules can only specify leaf
classes as targets for traffic.

 Root
        /  \
       /    \
                      1      2
                             /\
                            /  \
                           4    5
               classes 1,4 and 5 are leaf classes.
               class 2 is a inner class.

When a leaf class made as inner, or vice versa, resources associated
with send queue (send queue buffers and transmit schedulers) are not
getting freed.

Fixes: 5e6808b4c68d ("octeontx2-pf: Add support for HTB offload")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://lore.kernel.org/r/20240523073626.4114-1-hkelam@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/qos.c