Re: [PATCH] octeontx2-pf: devlink params support to set TL1 round robin priority

Hariprasad Kelam
2024-05-14T07:54:21Z

> On Mon, 13 May 2024 11:05:46 +0530 Hariprasad Kelam wrote:
> > Added support for setting or modifying transmit level (tl1) round
> > robin priority at runtime via devlink params.
> >
> > Octeontx2 and CN10K silicon's support five transmit levels (TL5 to TL1).
> > On each transmit level Hardware supports DWRR and strict priority,
> > depend on the configuration the hardware will choose the appropriate
> > method to select packets for the next level in the transmission process.
>
> Configuring DWRR parameters seems in no way HW specific.
> Please work on extending one of the Tx scheduling APIs to express this.
>
The driver offers per-interface DWRR params configuration with HTB offload.
Below are example commands having different classid with same priority value

tc class add dev ethx parent 1: classid 1:1 htb rate 10Gbit prio 1 quantum 2048
tc class add dev ethx parent 1: classid 1:2 htb rate 10Gbit prio 1 quantum 3048

Due to a hardware limitation, only a single DWRR group is supported on a transmit level.
To address this for physical functions (PFs) sharing a transmit level with their virtual functions (VFs),
a devlink option implemented to configure a priority value.

Thanks,
Hariprasad k

> pw-bot: cr