Re: [PATCH net-next v7 5/9] tun/tap: add unconsume function for returning entries to ptr_ring
From: Jason Wang <jasowang@redhat.com>
Date: 2026-01-08 03:41:00
Also in:
kvm, lkml, virtualization
From: Jason Wang <jasowang@redhat.com>
Date: 2026-01-08 03:41:00
Also in:
kvm, lkml, virtualization
On Thu, Jan 8, 2026 at 5:06 AM Simon Schippers [off-list ref] wrote:
Add {tun,tap}_ring_unconsume() wrappers to allow external modules
(e.g. vhost-net) to return previously consumed entries back to the
ptr_ring.It would be better to explain why we need such a return.
The functions delegate to ptr_ring_unconsume() and take a destroy callback for entries that cannot be returned to the ring.
Thanks