Re: [PATCH net-next v6 2/3] net: implement threaded-able napi poll loop support

2021-01-14 Thread Alexander Duyck
On Thu, Jan 14, 2021 at 7:14 PM Alexander Duyck wrote: > > On Thu, Jan 14, 2021 at 4:33 PM Wei Wang wrote: > > > > +void napi_enable(struct napi_struct *n) > > +{ > > + BUG_ON(!test_bit(NAPI_STATE_SCHED, &n->state)); > > + smp_mb__before_atomic(); > > + clear_bit(NAPI_STATE_S

Re: [PATCH net-next v6 2/3] net: implement threaded-able napi poll loop support

2021-01-14 Thread Alexander Duyck
On Thu, Jan 14, 2021 at 4:33 PM Wei Wang wrote: > > This patch allows running each napi poll loop inside its own > kernel thread. > The threaded mode could be enabled through napi_set_threaded() > api, and does not require a device up/down. The kthread gets > created on demand when napi_set_thread