]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Generalize zerocopy_from_iter
authorDave Watson <davejwatson@fb.com>
Thu, 22 Mar 2018 17:09:53 +0000 (10:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2018 16:25:53 +0000 (12:25 -0400)
commit9639e95484b3b1a03bc0775c00ae0445e0baa4f6
tree967a3ffd2d63ba6697cf22cb539adec79169ca11
parente9e8c02d4dbd1aa782c8e93b1c875a30a4ed3607
tls: Generalize zerocopy_from_iter

Refactor zerocopy_from_iter to take arguments for pages and size,
such that it can be used for both tx and rx. RX will also support
zerocopy direct to output iter, as long as the full message can
be copied at once (a large enough userspace buffer was provided).

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c