1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/marvell/octeontx2/nic
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
..
cn10k.c octeontx2-pf: Simplify the receive buffer size calculation 2021-10-10 11:46:54 +01:00
cn10k.h octeontx2-pf: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
Makefile octeontx2-pf: PFC config support with DCBx 2022-02-09 13:02:33 +00:00
otx2_common.c octeontx2-pf: Fix NIX_AF_TL3_TL2X_LINKX_CFG register configuration 2022-08-05 18:56:51 -07:00
otx2_common.h octeontx2-pf: Fix NIX_AF_TL3_TL2X_LINKX_CFG register configuration 2022-08-05 18:56:51 -07:00
otx2_dcbnl.c octeontx2-pf: PFC config support with DCBx 2022-02-09 13:02:33 +00:00
otx2_devlink.c octeontx2: Move devlink registration to be last devlink command 2021-09-27 16:31:59 +01:00
otx2_devlink.h octeontx2-pf: devlink params support to set mcam entry count 2021-08-17 10:06:33 +01:00
otx2_dmac_flt.c octeontx2-af: Fixes static warnings 2022-07-15 12:01:43 +01:00
otx2_ethtool.c octeontx2-vf: Add support for adaptive interrupt coalescing 2022-06-13 13:42:24 +01:00
otx2_flows.c octeontx2-pf: Add support for exact match table. 2022-07-11 10:52:14 -07:00
otx2_pf.c octeontx2-pf: Add support for exact match table. 2022-07-11 10:52:14 -07:00
otx2_ptp.c octeontx2-pf: cn10k: add support for new ptp timestamp format 2022-02-21 13:07:48 +00:00
otx2_ptp.h octeontx2-pf: cn10k: add support for new ptp timestamp format 2022-02-21 13:07:48 +00:00
otx2_reg.h octeontx2-pf: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
otx2_struct.h octeontx2-pf: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
otx2_tc.c Revert "Merge branch 'octeontx2-minor-tc-fixes'" 2022-07-28 10:55:42 +02:00
otx2_txrx.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
otx2_txrx.h octeontx2-pf: Reduce minimum mtu size to 60 2022-08-01 20:10:36 -07:00
otx2_vf.c net: make drivers set the TSO limit not the GSO limit 2022-05-06 12:07:56 +01:00