On 10/16/2018 04:03 PM, Stephen Hemminger wrote: > Many drivers have buggy usage of napi_complete_done. > > Might even be worth forcing all network drivers to check the return > value. But fixing 150 broken drivers will be a nuisance. > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index dc1d9ed33b31..c38bc66ffe74 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -466,7 +466,8 @@ static inline bool napi_reschedule(struct napi_struct > *napi) > return false; > } > > -bool napi_complete_done(struct napi_struct *n, int work_done); > +bool __must_check napi_complete_done(struct napi_struct *n, int work_done); > + > /** > * napi_complete - NAPI processing complete > * @n: NAPI context > I disagree completely. This never has been a requirement.
- [PATCH net] r8169: fix NAPI handling under high load Heiner Kallweit
- Re: [PATCH net] r8169: fix NAPI handling under hig... Holger Hoffstätte
- Re: [PATCH net] r8169: fix NAPI handling under... Stephen Hemminger
- Re: [PATCH net] r8169: fix NAPI handling u... Florian Fainelli
- Re: [PATCH net] r8169: fix NAPI handli... Eric Dumazet
- Re: [PATCH net] r8169: fix NAPI h... Florian Fainelli
- Re: [PATCH net] r8169: fix NAPI handling u... Eric Dumazet
- Re: [PATCH net] r8169: fix NAPI handling under... Heiner Kallweit
- Fwd: Re: [PATCH net] r8169: fix NAPI handl... Heiner Kallweit
- Re: [PATCH net] r8169: fix NAPI handling u... Holger Hoffstätte
- Re: [PATCH net] r8169: fix NAPI handli... Heiner Kallweit
- Re: [PATCH net] r8169: fix NAPI h... Holger Hoffstätte
- Re: [PATCH net] r8169: fix NA... Holger Hoffstätte
- Re: [PATCH net] r8169: fix NAPI handli... Francois Romieu
- Re: [PATCH net] r8169: fix NAPI h... Jonathan Woithe
- Re: [PATCH net] r8169: fix NA... Heiner Kallweit
- Re: [PATCH net] r8169: fi... Jonathan Woithe