Subject: Re: [PATCH net-next] net: add netdev_from_priv() helper

From: Jakub Kicinski <[email-masked]>
Date: Thu, 19 Mar 2026 13:27:31 -0700

On Thu, 19 Mar 2026 10:26:08 +0800 Qingfang Deng wrote:
> +/**
> + *	netdev_from_priv - get network device from priv
> + *	@priv: network device private data
> + *
> + * Get network device from private data pointer
> + */
> +static inline struct net_device *netdev_from_priv(const void *priv)
> +{
> +	return container_of(priv, struct net_device, priv);

When you repost this with a user please format the kdoc as:

+/**
+ * netdev_from_priv() - get network device from priv
+ * @priv: network device private data
+ *
+ * Returns: net_device to which @priv belongs
+ */