]> git.baikalelectronics.ru Git - kernel.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)
commit3030f108b1a4c05330bc420198daf1a050df7c5a
tree12a8a9edd9ef57ee9f77abf770f5f3c8d658c6f5
parentd676b0f79b55adbf6ac9adebf8152b8308d3e838
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