[net-next,v3,4/4] docs: octeontx2: extend documentation for Round Robin scheduling

Message ID 20230717093319.26618-5-hkelam@marvell.com
State New
Headers
Series octeontx2-pf: support Round Robin scheduling |

Commit Message

Hariprasad Kelam July 17, 2023, 9:33 a.m. UTC
  Add example tc-htb commands for Round robin scheduling

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
---
 .../device_drivers/ethernet/marvell/octeontx2.rst         | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Comments

Jakub Kicinski July 19, 2023, 2:44 a.m. UTC | #1
On Mon, 17 Jul 2023 15:03:19 +0530 Hariprasad Kelam wrote:
> +4. Create tc classes with same priorities and different quantum::
> +
> +        # tc class add dev <interface> parent 1: classid 1:1 htb rate 10Gbit prio 2 quantum 409600
> +
> +        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio 2 quantum 188416
> +
> +        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio 2 quantum 32768

last two rules should presumably have different classids?
  
Hariprasad Kelam July 19, 2023, 10:11 a.m. UTC | #2
> 
> ----------------------------------------------------------------------
> On Mon, 17 Jul 2023 15:03:19 +0530 Hariprasad Kelam wrote:
> > +4. Create tc classes with same priorities and different quantum::
> > +
> > +        # tc class add dev <interface> parent 1: classid 1:1 htb rate 10Gbit prio
> 2 quantum 409600
> > +
> > +        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio
> 2 quantum 188416
> > +
> > +        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio
> 2 quantum 32768
> 
> last two rules should presumably have different classids?
ACK, will correct this in next version.

Thanks,
Hariprasad k
> --
> pw-bot: cr
  

Patch

diff --git a/Documentation/networking/device_drivers/ethernet/marvell/octeontx2.rst b/Documentation/networking/device_drivers/ethernet/marvell/octeontx2.rst
index bfd233cfac35..3523e101cb53 100644
--- a/Documentation/networking/device_drivers/ethernet/marvell/octeontx2.rst
+++ b/Documentation/networking/device_drivers/ethernet/marvell/octeontx2.rst
@@ -332,3 +332,11 @@  Setup HTB offload
         # tc class add dev <interface> parent 1: classid 1:1 htb rate 10Gbit prio 1
 
         # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio 7
+
+4. Create tc classes with same priorities and different quantum::
+
+        # tc class add dev <interface> parent 1: classid 1:1 htb rate 10Gbit prio 2 quantum 409600
+
+        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio 2 quantum 188416
+
+        # tc class add dev <interface> parent 1: classid 1:2 htb rate 10Gbit prio 2 quantum 32768