Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_output.c
Show First 20 Lines • Show All 1,951 Lines • ▼ Show 20 Lines | if (hw_tls) { | ||||
*/ | */ | ||||
if (tls != ntls) { | if (tls != ntls) { | ||||
MPASS(m != start); | MPASS(m != start); | ||||
*plen = len_cp; | *plen = len_cp; | ||||
if (pkthdrlen != NULL) | if (pkthdrlen != NULL) | ||||
*pkthdrlen = len_cp; | *pkthdrlen = len_cp; | ||||
break; | break; | ||||
} | } | ||||
/* | |||||
* Don't end a send in the middle of a TLS | |||||
* record if it spans multiple TLS records. | |||||
*/ | |||||
if (tls != NULL && (m != start) && len < m->m_len) { | |||||
*plen = len_cp; | |||||
if (pkthdrlen != NULL) | |||||
*pkthdrlen = len_cp; | |||||
break; | |||||
} | |||||
} | } | ||||
#endif | #endif | ||||
mlen = min(len, m->m_len - off); | mlen = min(len, m->m_len - off); | ||||
if (seglimit) { | if (seglimit) { | ||||
/* | /* | ||||
* For M_EXTPG mbufs, add 3 segments | * For M_EXTPG mbufs, add 3 segments | ||||
* + 1 in case we are crossing page boundaries | * + 1 in case we are crossing page boundaries | ||||
* + 2 in case the TLS hdr/trailer are used | * + 2 in case the TLS hdr/trailer are used | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |