projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iov_iter, net: Merge csum_and_copy_from_iter{,_full}() together
[linux-2.6-microblaze.git]
/
net
/
core
/
datagram.c
diff --git
a/net/core/datagram.c
b/net/core/datagram.c
index
452620d
..
722311e
100644
(file)
--- a/
net/core/datagram.c
+++ b/
net/core/datagram.c
@@
-738,6
+738,11
@@
size_t memcpy_to_iter_csum(void *iter_to, size_t progress,
return 0;
}
+struct csum_state {
+ __wsum csum;
+ size_t off;
+};
+
static size_t csum_and_copy_to_iter(const void *addr, size_t bytes, void *_csstate,
struct iov_iter *i)
{