Re: [PATCH iproute2/net-next v2]tc: B.W limits can now be specified in %.

2017-11-15 Thread Stephen Hemminger
On Wed, 15 Nov 2017 07:06:21 +0530 Nishanth Devarajan wrote: > int parse_percent_rate(char *rate, const char *str, char *dev) You aren't modifyin dev so it should be const char * > +{ > + long max_rate_bits; > + int ret, saved_errno; > + double perc, rate_bits; > + char *str_perc,

Re: [PATCH iproute2/net-next v2]tc: B.W limits can now be specified in %.

2017-11-15 Thread Jakub Kicinski
On Wed, 15 Nov 2017 07:06:21 +0530, Nishanth Devarajan wrote: > This patch adapts the tc command line interface to allow bandwidth limits > to be specified as a percentage of the interface's capacity. > > For this purpose, we've modified and moved int read_prop() from > ip/iptuntap.c to lib.utils.

[PATCH iproute2/net-next v2]tc: B.W limits can now be specified in %.

2017-11-14 Thread Nishanth Devarajan
This patch adapts the tc command line interface to allow bandwidth limits to be specified as a percentage of the interface's capacity. For this purpose, we've modified and moved int read_prop() from ip/iptuntap.c to lib.utils.c to make it accessible to tc. Additionally, adding this functionality