From: Sebastian Gottschall
> Sent: 30 July 2020 15:30
...
> > Quite frankly, I do believe this STATE_THREADED status should be a generic 
> > NAPI attribute
> > that can be changed dynamically, at admin request, instead of having to 
> > change/recompile
> > a driver.

> thats not that easy. wifi devices do use dummy netdev devices. they are
> not visible to sysfs and other administrative options.
> so changing it would just be possible if a special mac80211 based
> control would be implemented for these drivers.
> for standard netdev devices it isnt a big thing to implement a
> administrative control by sysfs (if you are talking about such a feature)

ISTM that a global flag that made all NAPI callbacks be made
from a worker thread rather than softint would be more approriate.
Or even something that made the softint callbacks themselves
only run an a specific high(ish) priority kernel thread.

While it might slow down setups that need very low ethernet
latency it will help those that don't want application RT threads
to be 'stolen' by the softint code while they hold application
mutex or are waiting to be woken by a cv.

        David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, 
UK
Registration No: 1397386 (Wales)

Reply via email to