Subject: Re: [PATCH v5 net-next 04/36] net/tls: expose get_netdev_for_sock

From: Christoph Hellwig <[email-masked]>
Date: Fri, 23 Jul 2021 08:06:31 +0200

On Thu, Jul 22, 2021 at 02:02:53PM +0300, Boris Pismenny wrote:
> From: Boris Pismenny <[email-masked]>
> 
> get_netdev_for_sock is a utility that is used to obtain
> the net_device structure from a connected socket.
> 
> Later patches will use this for nvme-tcp DDP and DDP DDGST offloads.
> 
> Signed-off-by: Boris Pismenny <[email-masked]>
> Reviewed-by: Sagi Grimberg <[email-masked]>

I don't think this should be an inline.  Please move it to net/core/dev.c,
andd add an EXPORT_SYMBOL_GPL and a kerneldoc comment.