mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
At normal NFS server runtime there is not much RPC traffic from kernel to rpc.tlsservd. But as Rick rmacklem@ explained, the notion of multiple workers exists to handle a situation when a server reboots and it has several hundred or thousands of TLS/TCP connections from clients. Once it comes back up, all the clients make TCP connections and do TLS handshakes. So cleanup the remnants of the workers, that left after the conversion of RPC over netlink(4) transport and restore desired parallelism with help of pthread(3). We are processing the TLS handshakes in separate threads, one per handshake. Number of concurrent threads is capped by hw.ncpu / 2, but this can be overriden with -N. Differential Revision: https://reviews.freebsd.org/D48570
27 lines
609 B
Makefile
27 lines
609 B
Makefile
.include <src.opts.mk>
|
|
|
|
PROG= rpc.tlsservd
|
|
MAN= rpc.tlsservd.8
|
|
SRCS= rpc.tlsservd.c rpc.tlscommon.c rpctlssd.h rpctlssd_svc.c rpctlssd_xdr.c
|
|
|
|
CFLAGS+= -I.
|
|
|
|
LIBADD= ssl crypto util pthread
|
|
|
|
CLEANFILES= rpctlssd_svc.c rpctlssd_xdr.c rpctlssd.h
|
|
|
|
RPCSRC= ${SRCTOP}/sys/rpc/rpcsec_tls/rpctlssd.x
|
|
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
|
|
|
|
rpctlssd_svc.c: ${RPCSRC} rpctlssd.h
|
|
${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
|
|
|
|
rpctlssd_xdr.c: ${RPCSRC} rpctlssd.h
|
|
${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
|
|
|
|
rpctlssd.h: ${RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
|
|
|
|
.PATH: ${SRCTOP}/sys/rpc/rpcsec_tls
|
|
|
|
.include <bsd.prog.mk>
|