OSDN Git Service

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)
commit69ca9293e8dd9323c6cde579e1855d6ce9489a46
tree967a3ffd2d63ba6697cf22cb539adec79169ca11
parentae06c70b135886d7d6252f3090146f01a3f3b80c
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