From: Stephen Hemminger <stephen@networkplumber.org>
To: Marcos Antonio Moraes <marcos.antonio@digirati.com.br>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH iproute2] tc: use bits not mbits/sec in rate percent
Date: Fri, 8 Feb 2019 10:01:24 -0800 [thread overview]
Message-ID: <20190208100124.56377c01@hermes.lan> (raw)
In-Reply-To: <20190207152954.11036-1-marcos.antonio@digirati.com.br>
On Thu, 7 Feb 2019 13:29:54 -0200
Marcos Antonio Moraes <marcos.antonio@digirati.com.br> wrote:
> As /sys/class/net/<iface>/speed indicates a value in Mbits/sec, the
> conversion is necessary to create the correct limits.
>
> This guarantees the same result for the following commands in an
> 1000Mbit/sec device:
>
> tc class add ... htb rate 500Mbit
> tc class add ... htb rate 50%
>
> Fixes: 927e3cfb52b5 ("tc: B.W limits can now be specified in %.")
> Signed-off-by: Marcos Antonio Moraes <marcos.antonio@digirati.com.br>
Sure applied.
prev parent reply other threads:[~2019-02-08 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 15:29 [PATCH iproute2] tc: use bits not mbits/sec in rate percent Marcos Antonio Moraes
2019-02-08 18:01 ` Stephen Hemminger [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=20190208100124.56377c01@hermes.lan \
--to=stephen@networkplumber.org \
--cc=marcos.antonio@digirati.com.br \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).