]> 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)
commit8a8d47935351758a2942cff0aeaf7da958209b32
tree967a3ffd2d63ba6697cf22cb539adec79169ca11
parent2c587a5f4c73bb34a80ebfea34d46d977ed62370
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