Netdev List
 help / color / mirror / Atom feed
From: Ratheesh Kannoth <rkannoth@marvell.com>
To: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>
Cc: <andrew+netdev@lunn.ch>, <davem@davemloft.net>,
	<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
	<sgoutham@marvell.com>
Subject: Re: [PATCH v4 net-next] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers
Date: Thu, 6 Aug 2026 15:14:20 +0530	[thread overview]
Message-ID: <anRXdN4PAYOIS3fX@rkannoth-OptiPlex-7090> (raw)
In-Reply-To: <20260803042724.3380209-1-rkannoth@marvell.com>

On 2026-08-03 at 09:57:24, Ratheesh Kannoth (rkannoth@marvell.com) wrote:
> Add TC_SETUP_QDISC_MQPRIO handling to program per-queue MDQ CIR/PIR
> shaping after mqprio channel mode setup, widen SMQ allocation when
> per-queue rate limiting is enabled, and align MDQ parents under that
> mode. Reuse otx2_convert_rate for bps-to-Mbps, fix sparse register
> writes when only one of min/max is set, and improve AF txschq map
> mismatch diagnostics.
>
> Configuration examples:
>
> 1) Set up commands
>
> a. ifconfig eth0 xx.xx.xx.xx up
> b. tc qdisc add dev eth0 parent root handle 100 mqprio num_tc 4 \
>    map 0 1 2 3  queues 1@0 1@1 1@2 1@3  hw 1 mode channel shaper \
>    bw_rlimit \
>    min_rate 100Mbit 200Mbit 300Mbit 400Mbit \
>    max_rate 150Mbit 250Mbit 350Mbit 450Mbit
>
> c. iptables -t mangle -A POSTROUTING -p udp -j CLASSIFY --set-class 0:1
>
> This will guarantee max rate as 250Mbits for UDP traffic
>
> 2) Tear down mqprio
>
> a. ifconfig eth0 up
> b. tc qdisc del dev eth0 root
>
> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>

Will address sashiko comments in v5

pw-bot: changes-requested

      reply	other threads:[~2026-08-06  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03  4:27 [PATCH v4 net-next] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers Ratheesh Kannoth
2026-08-06  9:44 ` Ratheesh Kannoth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=anRXdN4PAYOIS3fX@rkannoth-OptiPlex-7090 \
    --to=rkannoth@marvell.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sgoutham@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox