diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 2021-07-06 14:17:33 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2021-07-06 14:28:32 +0000 |
commit | 28d0a740dd9a67e4a4fa9fda5bb39b5963316f35 (patch) | |
tree | 20f30d10ba70a01a4a37a50617d92a8570062394 /contrib/pjdfstest/README | |
parent | c9144ec14d2a5a53cfe91ada1b3b9c06b78dc999 (diff) | |
download | src-28d0a740dd9a67e4a4fa9fda5bb39b5963316f35.tar.gz src-28d0a740dd9a67e4a4fa9fda5bb39b5963316f35.zip |
ktls: auto-disable ifnet (inline hw) kTLS
Ifnet (inline) hw kTLS NICs typically keep state within
a TLS record, so that when transmitting in-order,
they can continue encryption on each segment sent without
DMA'ing extra state from the host.
This breaks down when transmits are out of order (eg,
TCP retransmits). In this case, the NIC must re-DMA
the entire TLS record up to and including the segment
being retransmitted. This means that when re-transmitting
the last 1448 byte segment of a TLS record, the NIC will
have to re-DMA the entire 16KB TLS record. This can lead
to the NIC running out of PCIe bus bandwidth well before
it saturates the network link if a lot of TCP connections have
a high retransmoit rate.
This change introduces a new sysctl (kern.ipc.tls.ifnet_max_rexmit_pct),
where TCP connections with higher retransmit rate will be
switched to SW kTLS so as to conserve PCIe bandwidth.
Reviewed by: hselasky, markj, rrs
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30908
Diffstat (limited to 'contrib/pjdfstest/README')
0 files changed, 0 insertions, 0 deletions