]> asedeno.scripts.mit.edu Git - linux.git/commit
datagram: introduce skb_copy_and_hash_datagram_iter helper
authorSagi Grimberg <sagi@lightbitslabs.com>
Tue, 4 Dec 2018 01:52:10 +0000 (17:52 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:58:55 +0000 (09:58 +0100)
commit65d69e2505bb64f6a8d7f417f6e46e2a351174c6
tree12a8a9edd9ef57ee9f77abf770f5f3c8d658c6f5
parentd05f443554b3c7dc6d46e3ba9c3c4de468875d4f
datagram: introduce skb_copy_and_hash_datagram_iter helper

Introduce a helper to copy datagram into an iovec iterator
but also update a predefined hash. This is useful for
consumers of skb_copy_datagram_iter to also support inflight
data digest without having to finish to copy and only then
traverse the iovec and calculate the digest hash.

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sagi Grimberg <sagi@lightbitslabs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/skbuff.h
net/core/datagram.c