cteonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneously
authorSuman Ghosh <sumang@marvell.com>
Thu, 24 Aug 2023 08:10:32 +0000 (13:40 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Aug 2023 01:48:39 +0000 (18:48 -0700)
commit597d0ec0e4ca6a912affea4cc94df08959e9ec74
treee3b49b5fc9e7c8a8a360a37ce066ea52bf49fef5
parent47bcc9c1cf6aa60156c7532983090e86d9d171b6
cteonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneously

MAC (CGX or RPM) asserts backpressure at TL3 or TL2 node of the egress
hierarchical scheduler tree depending on link level config done. If
there are multiple PFC priorities enabled at a time and for all such
flows to backoff, each priority will have to assert backpressure at
different TL3/TL2 scheduler nodes and these flows will need to submit
egress pkts to these nodes.

Current PFC configuration has an issue where in only one backpressure
scheduler node is being allocated which is resulting in only one PFC
priority to work. This patch fixes this issue.

Fixes: 99c969a83d82 ("octeontx2-pf: Add egress PFC support")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230824081032.436432-4-sumang@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c