Re: [PATCH] Using rates in bits when limits are specified in %

2019-02-07 Thread Marcos Antonio
Em 06/02/2019 16:51, Stephen Hemminger escreveu: On Wed, 6 Feb 2019 16:09:13 -0200 Marcos Antonio Moraes wrote: As /sys/class/net//speed indicates a value in Mbits/sec, the transformation is necessary to create the correct limitations. Not sure, if this is correct or not could you give an

Re: [PATCH] Using rates in bits when limits are specified in %

2019-02-06 Thread Stephen Hemminger
On Wed, 6 Feb 2019 16:09:13 -0200 Marcos Antonio Moraes wrote: > As /sys/class/net//speed indicates a value in Mbits/sec, the > transformation is necessary to create the correct limitations. Not sure, if this is correct or not could you give an example? This patch needs a signed-off-by and a a

[PATCH] Using rates in bits when limits are specified in %

2019-02-06 Thread Marcos Antonio Moraes
As /sys/class/net//speed indicates a value in Mbits/sec, the transformation is necessary to create the correct limitations. --- tc/tc_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/tc_util.c b/tc/tc_util.c index ab717890..b82142ab 100644 --- a/tc/tc_util.c +++

[PATCH] Using rates in bits when limits are specified in %

2019-02-06 Thread Marcos Antonio Moraes
As /sys/class/net//speed indicates a value in Mbits/sec, the transformation is necessary to create the correct limitations. --- tc/tc_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/tc_util.c b/tc/tc_util.c index ab717890..b82142ab 100644 --- a/tc/tc_util.c +++