]> 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)
commit1f195f1831d5c28b4017f029b9f235163b81c2f8
tree12a8a9edd9ef57ee9f77abf770f5f3c8d658c6f5
parent5d4cfe4072f386a650e5f90678c597a1b3f1c05e
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