From: Saeed Mahameed <sae...@mellanox.com> Date: Sun, 21 Jan 2018 05:30:42 +0200
> From: Talat Batheesh <tal...@mellanox.com> > > Helmut reported a bug about division by zero while > running traffic and doing physical cable pull test. > > When the cable unplugged the ppms become zero, so when > dividing the current ppms by the previous ppms in the > next dim iteration there is division by zero. > > This patch prevent this division for both ppms and epms. > > Fixes: c3164d2fc48f ("net/mlx5e: Added BW check for DIM decision mechanism") > Reported-by: Helmut Grauer <helmut.gra...@de.ibm.com> > Signed-off-by: Talat Batheesh <tal...@mellanox.com> > Signed-off-by: Saeed Mahameed <sae...@mellanox.com> > --- > v2: > - Fix spelling in commit message. > > This patch is the equivalent of: > ("net/dim: Fix fixpoint divide exception in net_dim_stats_compare") > which was already submitted to net-next. Since mlx5 irq moderation code > got moved in net-next, this patch should only go to net and skip net-next. > > for -stable: 4.12.y and later. Applied and queue up for -stable, thank you.