Re: [PATCH net-next v7 5/9] tun/tap: add unconsume function for returning entries to ptr_ring

From: Jason Wang

Date: Wed Jan 07 2026 - 22:41:00 EST


On Thu, Jan 8, 2026 at 5:06 AM Simon Schippers
<simon.schippers@xxxxxxxxxxxxxx> 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