]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix sosend() for the case where mbufs are passed in while doing ktls.
authorRick Macklem <rmacklem@FreeBSD.org>
Wed, 27 May 2020 23:20:35 +0000 (23:20 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 27 May 2020 23:20:35 +0000 (23:20 +0000)
commit469f2e9e9ae1582e09634015c5c85d8a23b0f881
tree6769e31263d3711b3afc0fff0e7c902ad2ecec46
parent9f716a645da029fc4f41d2de57a14d7e9d161ad1
Fix sosend() for the case where mbufs are passed in while doing ktls.

For kernel tls, sosend() needs to call ktls_frame() on the mbuf list
to be sent.  Without this patch, this was only done when sosend()'s
arguments used a uio_iov and not when an mbuf list is passed in.
At this time, sosend() is never called with an mbuf list argument when
kernel tls is in use, but will be once nfs-over-tls has been incorporated
into head.

Reviewed by: gallatin, glebius
Differential Revision: https://reviews.freebsd.org/D24674
sys/kern/uipc_socket.c