diff options
author | Sagi Grimberg <sagi@lightbitslabs.com> | 2018-12-03 17:52:09 -0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-13 09:58:54 +0100 |
commit | d05f443554b3c7dc6d46e3ba9c3c4de468875d4f (patch) | |
tree | 6bc94110dc8dd6ea1540ec26b6b4f6c3029ea0f0 /lib/error-inject.c | |
parent | 950fcaecd5cc6c014bb96506fd0652a501c85276 (diff) | |
download | linux-d05f443554b3c7dc6d46e3ba9c3c4de468875d4f.tar.bz2 |
iov_iter: introduce hash_and_copy_to_iter helper
Allow consumers that want to use iov iterator helpers and also update
a predefined hash calculation online when copying data. This is useful
when copying incoming network buffers to a local iterator and calculate
a digest on the incoming stream. nvme-tcp host driver that will be
introduced in following patches is the first consumer via
skb_copy_and_hash_datagram_iter.
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions