Re: [PATCH] net: remove lockdep asserts from ____napi_schedule()

2022-03-19 Thread Sebastian Andrzej Siewior
On 2022-03-18 18:47:38 [-0600], Jason A. Donenfeld wrote: > This reverts commit fbd9a2ceba5c ("net: Add lockdep asserts to > napi_schedule()."). While good in theory, in practice it causes > issues with various drivers, and so it can be revisited earlier in the > cycle where those drivers can

Re: [RFC] wiregard RX packet processing.

2022-01-11 Thread Sebastian Andrzej Siewior
On 2021-12-20 18:29:49 [+0100], Jason A. Donenfeld wrote: > Hi Sebastian, > > Seems like you've identified two things, the use of need_resched, and > potentially surrounding napi_schedule in local_bh_{disable,enable}. > > Regarding need_resched, I pulled that out of other code that seemed to >

[RFC] wiregard RX packet processing.

2021-12-10 Thread Sebastian Andrzej Siewior
I didn't understand everything, I just stumbled upon this while looking for something else and don't have the time to figure everything out. Also I might haven taken a wrong turn somewhere… need_resched() is something you want avoid unless you write core code. On a PREEMPT kernel you never