Re: [PATCH net-next V4 2/2] net/sched: cbs: fix port_rate miscalculation

2019-03-28 Thread kbuild test robot
Hi Leandro, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Leandro-Dorileo/net-sched-taprio-cbs-Fix-using-invalid-link-speed/20190329-043825 config: alpha-allyesconfig (attached as .config) com

[PATCH net-next V4 2/2] net/sched: cbs: fix port_rate miscalculation

2019-03-27 Thread Leandro Dorileo
The Credit Based Shaper heavily depends on link speed to calculate the scheduling credits, we can't properly calculate the credits if the device has failed to report the link speed. In that case we can't dequeue packets assuming a wrong port rate that will result into an inconsistent credit distri