]> www.infradead.org Git - users/hch/misc.git/commit
octeontx2-pf: qos: fix VF root node parent queue index
authorHariprasad Kelam <hkelam@marvell.com>
Mon, 7 Apr 2025 07:03:41 +0000 (12:33 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Apr 2025 10:32:55 +0000 (12:32 +0200)
commitb7db94734e785e380b0db0f9295e07024f4d42a0
treee3076b8f8b9c44719f09391bd36227fc60ac675f
parenta1328a671e1c93a3513c286a05ff0abe6698d891
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: 5e6808b4c68d ("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>
drivers/net/ethernet/marvell/octeontx2/nic/qos.c