From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [net-next 12/15] i40evf: Drop i40evf_fire_sw_int as it is prone to races Date: Thu, 4 Jan 2018 12:31:41 +0300 Message-ID: <2d470a24-a79e-b0f4-3a91-5f2dd0be5da0@cogentembedded.com> References: <20180103212222.17378-1-jeffrey.t.kirsher@intel.com> <20180103212222.17378-13-jeffrey.t.kirsher@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Duyck , netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com, jogreene@redhat.com To: Jeff Kirsher , davem@davemloft.net Return-path: Received: from mail-lf0-f45.google.com ([209.85.215.45]:44649 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751653AbeADJbo (ORCPT ); Thu, 4 Jan 2018 04:31:44 -0500 Received: by mail-lf0-f45.google.com with SMTP id g63so1086471lfl.11 for ; Thu, 04 Jan 2018 01:31:43 -0800 (PST) In-Reply-To: <20180103212222.17378-13-jeffrey.t.kirsher@intel.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Hello! On 1/4/2018 12:22 AM, Jeff Kirsher wrote: > From: Alexander Duyck > > Having the interrupts firing while we are polling causes extra overhead and > isn't needed for most systems out there. If an interrupt is lost us > experiencing a 2s latency spike before recovering is still not acceptable > and masks the issue. We are better off just identifying systems that lose > interrupts and instead enable workarounds for those systems. > > To that end I am dropping the code that was strobing the interrupts as > there is a narrow window where having them enabled can actually cause > race issues anyway where a few stray packets might get misses if the > interrupt is re-enabled and fires before we call napi_complete. > > Also replace one line where we were using bit 31 instead of the define > for the bit to represent masking the interrupt enable bit. I'm not seeing this change... > Signed-off-by: Alexander Duyck > Tested-by: Andrew Bowers > Signed-off-by: Jeff Kirsher [...] MBR, Sergei