]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Octeontx2-pf: Fix Backpresure configuration
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 17 Jun 2025 06:34:02 +0000 (12:04 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 21:19:22 +0000 (14:19 -0700)
commit9ac8d0c640a161486eaf71d1999ee990fad62947
tree269fadf737332a508ffd81c81deea01bb3f2729d
parent28c0d7756fd9b69971073c946076e35851a7133b
Octeontx2-pf: Fix Backpresure configuration

NIX block can receive packets from multiple links such as
MAC (RPM), LBK and CPT.

       -----------------
 RPM --|     NIX       |
       -----------------
             |
             |
            LBK

Each link supports multiple channels for example RPM link supports
16 channels. In case of link oversubsribe, NIX will assert backpressure
on receive channels.

The previous patch considered a single channel per link, resulting in
backpressure not being enabled on the remaining channels

Fixes: a7ef63dbd588 ("octeontx2-af: Disable backpressure between CPT and NIX")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250617063403.3582210-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c