OpenCloudOS-Kernel/drivers/net/ethernet/marvell
Naveen Mamindlapalli 13c9f4dc10 octeontx2-pf: Fix NIX_AF_TL3_TL2X_LINKX_CFG register configuration
For packets scheduled to RPM and LBK, NIX_AF_PSE_CHANNEL_LEVEL[BP_LEVEL]
selects the TL3 or TL2 scheduling level as the one used for link/channel
selection and backpressure. For each scheduling queue at the selected
level: Setting NIX_AF_TL3_TL2(0..255)_LINK(0..12)_CFG[ENA] = 1 allows
the TL3/TL2 queue to schedule packets to a specified RPM or LBK link
and channel.

There is an issue in the code where NIX_AF_PSE_CHANNEL_LEVEL[BP_LEVEL]
is set to TL3 where as the NIX_AF_TL3_TL2(0..255)_LINK(0..12)_CFG is
configured for TL2 queue in some cases. As a result packets will not
transmit on that link/channel. This patch fixes the issue by configuring
the NIX_AF_TL3_TL2(0..255)_LINK(0..12)_CFG register depending on the
NIX_AF_PSE_CHANNEL_LEVEL[BP_LEVEL] value.

Fixes: caa2da34fd ("octeontx2-pf: Initialize and config queues")
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20220802142813.25031-1-naveenm@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-05 18:56:51 -07:00
..
mvpp2 net: mvpp2: fix typo in comment 2022-05-22 20:44:29 +01:00
octeon_ep octeon_ep: use bitwise AND 2022-06-27 21:56:35 -07:00
octeontx2 octeontx2-pf: Fix NIX_AF_TL3_TL2X_LINKX_CFG register configuration 2022-08-05 18:56:51 -07:00
prestera net: marvell: prestera: remove reduntant code 2022-08-01 20:32:07 -07:00
Kconfig net: mvneta: add support for page_pool_get_stats 2022-04-15 10:43:48 +01:00
Makefile octeon_ep: Add driver framework and device initialization 2022-04-13 12:56:32 +01:00
mv643xx_eth.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
mvmdio.c net: mvmdio: fix compilation warning 2021-11-16 18:55:17 -08:00
mvneta.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
mvneta_bm.c net: mvneta: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
mvneta_bm.h net: mvneta: make stub functions static inline 2019-10-25 16:21:48 -07:00
pxa168_eth.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
skge.c eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00