Page MenuHomeFreeBSD

fix sosend() so that it can handle an mbuf list for KTLS
ClosedPublic

Authored by rmacklem on May 2 2020, 11:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 13, 5:50 PM
Unknown Object (File)
Thu, Nov 13, 3:09 AM
Unknown Object (File)
Tue, Nov 11, 10:43 PM
Unknown Object (File)
Sun, Nov 2, 3:04 AM
Unknown Object (File)
Mon, Oct 27, 5:28 AM
Unknown Object (File)
Sat, Oct 25, 6:07 PM
Unknown Object (File)
Sat, Oct 25, 6:07 PM
Unknown Object (File)
Sat, Oct 25, 6:07 PM
Subscribers

Details

Summary

When the nfs-over-tls krpc calls sosend() with a list of ext_pgs
mbufsto be handled via the ktls, ktls_frame() needs to be
called on them.

This patch just does the same call as the case where the data
has been copied in via m_uiotombuf() below where the patch
is applied.

I'll admit I don't understand if/when tls_rtype is not TLS_RLTYPE_APP,
but I did what the m_uiotombuf() case already does.

Test Plan

It has seen minimal testing using nfs-over-tls sofar,
but I will be doing further testing soon.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable