Re: [PATCH net] net/dim: Fix int overflow

2018-03-30 Thread David Miller
From: Tal Gilboa Date: Thu, 29 Mar 2018 13:53:52 +0300 > When calculating difference between samples, the values > are multiplied by 100. Large values may cause int overflow > when multiplied (usually on first iteration). > Fixed by forcing 100 to be of type unsigned long. > > Fixes: 4c4dbb4a736

Re: [PATCH net] net/dim: Fix int overflow

2018-03-29 Thread Andy Gospodarek
On Thu, Mar 29, 2018 at 01:53:52PM +0300, Tal Gilboa wrote: > When calculating difference between samples, the values > are multiplied by 100. Large values may cause int overflow > when multiplied (usually on first iteration). > Fixed by forcing 100 to be of type unsigned long. > > Fixes: 4c4dbb4a

[PATCH net] net/dim: Fix int overflow

2018-03-29 Thread Tal Gilboa
When calculating difference between samples, the values are multiplied by 100. Large values may cause int overflow when multiplied (usually on first iteration). Fixed by forcing 100 to be of type unsigned long. Fixes: 4c4dbb4a7363 ("net/mlx5e: Move dynamic interrupt coalescing code to include/lin