octeontx2-pf: implement transmit schedular allocation algorithm
authorNaveen Mamindlapalli <naveenm@marvell.com>
Wed, 19 Jul 2023 11:04:40 +0000 (16:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2023 08:55:53 +0000 (09:55 +0100)
commitf78dca691287813b6f101b207272786f0cb39c65
tree710586761b37842b960ead5862ce9ac2ede0a70d
parentc6514f3627a0e52b665606eecb8205d22dddde5b
octeontx2-pf: implement transmit schedular allocation algorithm

unlike strict priority, where number of classes are limited to max
8, there is no restriction on the number of dwrr child nodes unless
the count increases the max number of child nodes supported.

Hardware expects strict priority transmit schedular indexes mapped
to their priority. This patch adds defines transmit schedular allocation
algorithm such that the above requirement is honored.

Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/qos.c
drivers/net/ethernet/marvell/octeontx2/nic/qos.h