Re: [PATCH v5 net-next] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers
Ratheesh Kannoth <[email protected]>
| Newsgroups | org.kernel.vger.netdev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <anlJGID_6IBlTFau@rkannoth-OptiPlex-7090> |
On 2026-08-06 at 15:24:34, Ratheesh Kannoth ([email protected]) 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 <[email protected]> Will address sashiko issues in v6 pw-bot: changes-requested