Re: [PATCH net] net: sched: cbs: Avoid division by zero when calculating the port rate

2019-10-01 Thread David Miller
From: Vladimir Oltean Date: Sun, 29 Sep 2019 02:39:48 +0300 > As explained in the "net: sched: taprio: Avoid division by zero on > invalid link speed" commit, it is legal for the ethtool API to return > zero as a link speed. So guard against it to ensure we don't perform a > division by zero in k

Re: [PATCH net] net: sched: cbs: Avoid division by zero when calculating the port rate

2019-09-30 Thread Vinicius Costa Gomes
Vladimir Oltean writes: > As explained in the "net: sched: taprio: Avoid division by zero on > invalid link speed" commit, it is legal for the ethtool API to return > zero as a link speed. So guard against it to ensure we don't perform a > division by zero in kernel. > > Fixes: e0a7683d30e9 ("net

[PATCH net] net: sched: cbs: Avoid division by zero when calculating the port rate

2019-09-28 Thread Vladimir Oltean
As explained in the "net: sched: taprio: Avoid division by zero on invalid link speed" commit, it is legal for the ethtool API to return zero as a link speed. So guard against it to ensure we don't perform a division by zero in kernel. Fixes: e0a7683d30e9 ("net/sched: cbs: fix port_rate miscalcula