From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: pegged softirq and NAPI race (?) Date: Tue, 18 Sep 2018 14:35:46 -0700 Message-ID: References: <0FD562CC-CDE9-43C8-9623-B42AC7A208C8@fb.com> <09e7e3f8-dee8-71ea-7e57-4d0c92dcf13b@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: songliubraving@fb.com, Alexei Starovoitov , netdev , Jeff Kirsher , Alexander Duyck , michael.chan@broadcom.com, kernel-team To: Eric Dumazet Return-path: Received: from mail-wr1-f66.google.com ([209.85.221.66]:45433 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbeISDK1 (ORCPT ); Tue, 18 Sep 2018 23:10:27 -0400 Received: by mail-wr1-f66.google.com with SMTP id 20-v6so3605923wrb.12 for ; Tue, 18 Sep 2018 14:35:56 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 09/18/2018 02:28 PM, Eric Dumazet wrote: > On Tue, Sep 18, 2018 at 2:25 PM Florian Fainelli wrote: >> >> >> This would not be the only driver doing this unfortunately... should we >> add a __must_check annotation to help catch those (mis)uses? Though that >> could cause false positives for drivers using NAPI to clean their TX ring. >> > > Well, before adding __must_check we would need to cook a (big) patch > series to change all occurrences. > Sounds good, I don't mind submitting something unless you beat me to it. > > Not clear why netpoll is the trigger ? > Me either, this should be observable during normal operation as well, though most likely you just get a spurious interrupt and nothing to clean in the RX ring, so things just get unnoticed? -- Florian