From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/dim: Fix int overflow Date: Fri, 30 Mar 2018 12:56:35 -0400 (EDT) Message-ID: <20180330.125635.2202630540480329718.davem@davemloft.net> References: <1522320832-18416-1-git-send-email-talgi@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tariqt@mellanox.com, andrew.gospodarek@broadcom.com, saeedm@mellanox.com To: talgi@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:33148 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbeC3Q4h (ORCPT ); Fri, 30 Mar 2018 12:56:37 -0400 In-Reply-To: <1522320832-18416-1-git-send-email-talgi@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: 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: 4c4dbb4a7363 ("net/mlx5e: Move dynamic interrupt coalescing code to include/linux") > Signed-off-by: Tal Gilboa Applied, thank you.