diff options
author | Sagi Grimberg <sagi@lightbitslabs.com> | 2018-12-04 02:52:08 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-13 09:58:53 +0100 |
commit | 950fcaecd5cc6c014bb96506fd0652a501c85276 (patch) | |
tree | 15e815ace068cd74215156fd0957a75ce3a992c1 /lib/iov_iter.c | |
parent | iov_iter: pass void csum pointer to csum_and_copy_to_iter (diff) | |
download | linux-950fcaecd5cc6c014bb96506fd0652a501c85276.tar.xz linux-950fcaecd5cc6c014bb96506fd0652a501c85276.zip |
datagram: consolidate datagram copy to iter helpers
skb_copy_datagram_iter and skb_copy_and_csum_datagram are essentialy
the same but with a couple of differences: The first is the copy
operation used which either a simple copy or a csum_and_copy, and the
second are the behavior on the "short copy" path where simply copy
needs to return the number of bytes successfully copied while csum_and_copy
needs to fault immediately as the checksum is partial.
Introduce __skb_datagram_iter that additionally accepts:
1. copy operation function pointer
2. private data that goes with the copy operation
3. fault_short flag to indicate the action on short copy
Suggested-by: David S. Miller <davem@davemloft.net>
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/iov_iter.c')
0 files changed, 0 insertions, 0 deletions