Re: [PATCH iproute2] tc: use bits not mbits/sec in rate percent

2019-02-08 Thread Stephen Hemminger
On Thu, 7 Feb 2019 13:29:54 -0200 Marcos Antonio Moraes wrote: > As /sys/class/net//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 ...

[PATCH iproute2] tc: use bits not mbits/sec in rate percent

2019-02-07 Thread Marcos Antonio Moraes
As /sys/class/net//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 l