Re: [PATCH v5 net-next] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers
From: Ratheesh Kannoth
Date: Sun Aug 09 2026 - 23:45:09 EST
On 2026-08-06 at 15:24:34, Ratheesh Kannoth (rkannoth@xxxxxxxxxxx) 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@xxxxxxxxxxx>
Will address sashiko issues in v6
pw-bot: changes-requested