Re: [PATCH net-next 4/4] net: mvneta: Add TC traffic shaping offload
From: Jakub Kicinski
Date: Thu Nov 25 2021 - 12:52:33 EST
On Thu, 25 Nov 2021 16:48:13 +0100 Maxime Chevallier wrote:
> The mvneta controller is able to do some tocken-bucket per-queue traffic
> shaping. This commit adds support for setting these using the TC mqprio
> interface.
>
> The token-bucket parameters are customisable, but the current
> implementation configures them to have a 10kbps resolution for the
> rate limitation, since it allows to cover the whole range of max_rate
> values from 10kbps to 5Gbps with 10kbps increments.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Breaks 32bit build, please make sure you use division helpers for 64b.