> - [High] With non-threaded NAPI on PREEMPT_RT, the veth fix does not > remove the priority inversion the commit message describes.
Right. Without threaded NAPI, __napi_schedule() only queues the NAPI on the producer's CPU, and the poll runs when that producer reaches local_bh_enable(). A preemption anywhere in that BH section holds the packets of the other producers, before or after __napi_schedule(). The patch only helps with threaded NAPI, where __napi_schedule() wakes the NAPI thread. Sebastian made the same point.
> The veth_poll() hunk seems to have the same problem.
Agreed. Without threaded NAPI, the re-scheduled NAPI is served by the task that runs the poll; with threaded NAPI, the thread re-schedules itself. I will drop that hunk.
> Could the comment on veth_napi_schedule() and > the commit message be limited to that case? Or does the non-threaded > case need a different approach, such as covering the whole BH-disabled > section, or requiring threaded NAPI on PREEMPT_RT?
v2 will limit the comment and the commit message to threaded NAPI. Covering the whole H-disabled section would make the transmit path and the poll non-preemptible, which PREEMPT_RT is designed to avoid. On PREEMPT_RT, any NAPI that is not threaded runs in the softirq of the task that scheduled it, at that task's priority; threaded NAPI is the way out, as the backlog already does on PREEMPT_RT. Requiring it for veth would change behaviour and belongs in net-next, outside this fix. Sebastian, unless you see a reason to hold it, I will send v2 with these changes on Monday. pw-bot: cr