[net-next Patchv2 0/3] support Round Robin scheduling

Hariprasad Kelam posted 3 patches 2 years, 6 months ago
.../marvell/octeontx2/nic/otx2_common.c       |   1 +
.../marvell/octeontx2/nic/otx2_common.h       |   1 +
.../net/ethernet/marvell/octeontx2/nic/qos.c  | 347 ++++++++++++++++--
.../net/ethernet/marvell/octeontx2/nic/qos.h  |  11 +-
.../net/ethernet/mellanox/mlx5/core/en/qos.c  |   4 +-
include/net/pkt_cls.h                         |   1 +
net/sched/sch_htb.c                           |   7 +-
7 files changed, 329 insertions(+), 43 deletions(-)
[net-next Patchv2 0/3] support Round Robin scheduling
Posted by Hariprasad Kelam 2 years, 6 months ago
octeontx2 and CN10K silicons support Round Robin scheduling. When multiple
traffic flows reach transmit level with the same priority, with Round Robin
scheduling traffic flow with the highest quantum value is picked. With this
support, the user can add multiple classes with the same priority and
different quantum in htb offload.

This series of patches adds support for the same.

Patch1: implement transmit schedular allocation algorithm as preparation
        for support round robin scheduling.

Patch2: Allow quantum parameter in HTB offload mode.

Patch3: extends octeontx2 htb offload support for  Round Robin scheduling


Naveen Mamindlapalli (3):
  octeontx2-pf: implement transmit schedular allocation algorithm
  sch_htb: Allow HTB quantum parameter in offload mode
  octeontx2-pf: htb offload support for Round Robin scheduling
--
v2 * change data type of otx2_index_used to reduce size of structure
     otx2_qos_cfg


 .../marvell/octeontx2/nic/otx2_common.c       |   1 +
 .../marvell/octeontx2/nic/otx2_common.h       |   1 +
 .../net/ethernet/marvell/octeontx2/nic/qos.c  | 347 ++++++++++++++++--
 .../net/ethernet/marvell/octeontx2/nic/qos.h  |  11 +-
 .../net/ethernet/mellanox/mlx5/core/en/qos.c  |   4 +-
 include/net/pkt_cls.h                         |   1 +
 net/sched/sch_htb.c                           |   7 +-
 7 files changed, 329 insertions(+), 43 deletions(-)

--
2.17.1
Re: [net-next Patchv2 0/3] support Round Robin scheduling
Posted by Jakub Kicinski 2 years, 6 months ago
On Thu, 13 Jul 2023 11:31:08 +0530 Hariprasad Kelam wrote:
> octeontx2 and CN10K silicons support Round Robin scheduling. When multiple
> traffic flows reach transmit level with the same priority, with Round Robin
> scheduling traffic flow with the highest quantum value is picked. With this
> support, the user can add multiple classes with the same priority and
> different quantum in htb offload.

Please extend the driver documentation appropriately, there's 
a "Setup HTB offload" section which only shows strict prio now.
-- 
pw-bot: cr
Re: [net-next Patchv2 0/3] support Round Robin scheduling
Posted by Hariprasad Kelam 2 years, 6 months ago

> -----Original Message-----
> From: Jakub Kicinski <kuba@kernel.org>
> Sent: Friday, July 14, 2023 8:58 AM
> To: Hariprasad Kelam <hkelam@marvell.com>
> On Thu, 13 Jul 2023 11:31:08 +0530 Hariprasad Kelam wrote:
> > octeontx2 and CN10K silicons support Round Robin scheduling. When
> > multiple traffic flows reach transmit level with the same priority,
> > with Round Robin scheduling traffic flow with the highest quantum
> > value is picked. With this support, the user can add multiple classes
> > with the same priority and different quantum in htb offload.
> 
> Please extend the driver documentation appropriately, there's a "Setup HTB
> offload" section which only shows strict prio now.

Thanks for the review. Will add the changes in the next version.

Thanks,
Hariprasad k

> --
> pw-bot: cr