Re: [PATCH] nfsd: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets

From: NeilBrown
Date: Sun Jul 21 2024 - 19:25:41 EST


On Sat, 20 Jul 2024, Chuck Lever wrote:
> On Fri, Jul 19, 2024 at 02:55:53PM -0400, Jeff Layton wrote:
> > When creating nfsd sockets via the netlink interface, we do want to
> > register with the portmapper. Don't set SVC_SOCK_ANONYMOUS.
>
> NFSD's RDMA transports don't register with rpcbind, for example.

For RDMA, what does inet->sk_family and in->sk_protocol contain in
svc_setup_socket()?

Could that code detect that it doesn't make sense to register the socket
with rpcbind?

NeilBrown