]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 20 Mar 2024 22:29:51 +0000 (15:29 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 20 Mar 2024 22:29:51 +0000 (15:29 -0700)
commita16ff32f04b5b891a2d9b0427a2fd9c48e866da3
tree418502562183fb5b5494dee2f0a82403cd629d5b
parenteba13bbc37ab4f45a8a3502d59c37d56d9a04ca5
NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets

Since this is an optimization, ignore failures to enable the option.

For the server side, defer enabling DDP until the first non-NULLPROC
RPC is received.  This allows TLS handling (which uses NULLPROC RPCs)
to enable TLS offload first.

Reviewed by: rmacklem
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D44002
sys/rpc/clnt_rc.c
sys/rpc/svc.c
sys/rpc/svc.h