Subject: Re: [PATCH net-next v10 14/22] io_uring/zcrx: grab a net device

From: Jakub Kicinski <[email-masked]>
Date: Wed, 15 Jan 2025 17:06:44 -0800

On Wed,  8 Jan 2025 14:06:35 -0800 David Wei wrote:
> From: Pavel Begunkov <[email-masked]>
> 
> Zerocopy receive needs a net device to bind to its rx queue and dma map
> buffers. As a preparation to following patches, resolve a net device
> from the if_idx parameter with no functional changes otherwise.

How do you know if someone unregisters this netdevice?
The unregister process waits for all the refs to be released,
for *ekhm* historic reasons. Normally ref holders subscribe
to netdev events and kill their dependent objects. Perhaps
it is somewhere else/later in the series...

> +#include <linux/rtnetlink.h>

Do you need anything more than rtnl_lock from this header?