freebsd-dev/sys/dev/cxgbe/tom
John Baldwin 0082e479ef Clear TLS offload mode if a TLS socket hangs without receiving data.
By default, if a TOE TLS socket stops receiving data for more than 5
seconds, revert the connection back to plain TOE mode.  This provides
a fallback if the userland SSL library does not support KTLS.  In
addition, for client TLS 1.3 sockets using connect(), the TOE socket
blocks before the handshake has completed since the socket option is
only invoked for the final handshake.

The timeout defaults to 5 seconds, but can be changed at boot via the
hw.cxgbe.toe.tls_rx_timeout tunable or for an individual interface via
the dev.<nexus>.toe.tls_rx_timeout sysctl.

Reviewed by:	np
MFC after:	2 weeks
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D27470
2020-12-03 22:06:08 +00:00
..
t4_connect.c Clear TLS offload mode if a TLS socket hangs without receiving data. 2020-12-03 22:06:08 +00:00
t4_cpl_io.c Clear TLS offload mode if a TLS socket hangs without receiving data. 2020-12-03 22:06:08 +00:00
t4_ddp.c vmspace: Convert to refcount(9) 2020-11-04 16:30:56 +00:00
t4_listen.c cxgbe/t4_tom: Handle VXLAN-encapsulated SYNs correctly. 2020-11-12 20:02:48 +00:00
t4_tls.c Clear TLS offload mode if a TLS socket hangs without receiving data. 2020-12-03 22:06:08 +00:00
t4_tls.h
t4_tom_l2t.c
t4_tom_l2t.h
t4_tom.c Clear TLS offload mode if a TLS socket hangs without receiving data. 2020-12-03 22:06:08 +00:00
t4_tom.h Clear TLS offload mode if a TLS socket hangs without receiving data. 2020-12-03 22:06:08 +00:00