1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/marvell/octeontx2/nic
Hariprasad Kelam 04fb71cc5f octeontx2-pf: Reuse Transmit queue/Send queue index of HTB class
Real number of Transmit queues are incremented when user enables HTB
class and vice versa. Depending on SKB priority driver returns transmit
queue (Txq). Transmit queues and Send queues are one-to-one mapped.

In few scenarios, Driver is returning transmit queue value which is
greater than real number of transmit queue and Stack detects this as
error and overwrites transmit queue value.

For example
user has added two classes and real number of queues are incremented
accordingly
- tc class add dev eth1 parent 1: classid 1:1 htb
      rate 100Mbit ceil 100Mbit prio 1 quantum 1024
- tc class add dev eth1 parent 1: classid 1:2 htb
      rate 100Mbit ceil 200Mbit prio 7 quantum 1024

now if user deletes the class with id 1:1, driver decrements the real
number of queues
- tc class del dev eth1 classid 1:1

But for the class with id 1:2, driver is returning transmit queue
value which is higher than real number of transmit queue leading
to below error

eth1 selects TX queue x, but real number of TX queues is x

This patch solves the problem by assigning deleted class transmit
queue/send queue to active class.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240508070935.11501-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-10 18:49:15 -07:00
..
cn10k.c octeontx2-pf: Restore TC ingress police rules when interface is up 2023-11-28 12:02:12 +01:00
cn10k.h octeontx2-pf: Fix page pool cache index corruption. 2023-09-10 19:29:15 +01:00
cn10k_macsec.c octeontx2-pf: mcs: update PN only when update_pn is true 2023-10-10 10:30:31 +02:00
Makefile octeontx2-pf: Add support for HTB offload 2023-05-15 09:31:07 +01:00
otx2_common.c octeontx2-pf: Wait till detach_resources msg is complete 2024-03-20 10:49:07 +00:00
otx2_common.h octeontx2-pf: Add support for offload tc with skbedit mark action 2024-04-22 10:14:14 +01:00
otx2_dcbnl.c octeontx2-pf: Fix graceful exit during PFC configuration failure 2023-12-15 10:28:07 +00:00
otx2_devlink.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07: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-pf: Remove xdp queues on program detach 2024-02-01 15:26:23 +01:00
otx2_flows.c octeontx2-pf: Add support for offload tc with skbedit mark action 2024-04-22 10:14:14 +01:00
otx2_pf.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
otx2_ptp.c octeontx2-pf: Enable PTP PPS output support 2023-09-15 10:35:07 +01: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: Prepare for QOS offload 2023-05-15 09:31:07 +01:00
otx2_struct.h octeontx2-pf: Fix error codes 2023-11-02 10:40:15 +01:00
otx2_tc.c octeontx2-pf: flower: check for unsupported control flags 2024-04-24 20:01:44 -07:00
otx2_txrx.c octeontx2-pf: Add support for offload tc with skbedit mark action 2024-04-22 10:14:14 +01:00
otx2_txrx.h octeontx2-pf: Add support for offload tc with skbedit mark action 2024-04-22 10:14:14 +01:00
otx2_vf.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
qos.c octeontx2-pf: Reuse Transmit queue/Send queue index of HTB class 2024-05-10 18:49:15 -07:00
qos.h octeontx2-pf: htb offload support for Round Robin scheduling 2023-07-21 09:55:53 +01:00
qos_sq.c octeontx2-pf: Add support for page pool 2023-05-23 10:47:50 +02:00