Re: [PATCH net-next v8 1/4] tun/tap: add ptr_ring consume helper with netdev queue wakeup
From: Jason Wang <hidden>
Date: 2026-03-24 01:47:52
Also in:
kvm, lkml, virtualization
From: Jason Wang <hidden>
Date: 2026-03-24 01:47:52
Also in:
kvm, lkml, virtualization
On Thu, Mar 12, 2026 at 9:07 PM Simon Schippers [off-list ref] wrote:
Introduce tun_ring_consume() that wraps ptr_ring_consume() and calls __tun_wake_queue(). The latter wakes the stopped netdev subqueue once half of the ring capacity has been consumed, tracked via the new cons_cnt field in tun_file. When the ring is empty the queue is also woken to handle potential races. Without the corresponding queue stopping (introduced in a subsequent commit), this patch alone causes no regression for a tap setup sending to a qemu VM: 1.151 Mpps to 1.153 Mpps.
Another call to squash this into next patch. Thanks