Commit 1ea42735 authored by Tim Smith's avatar Tim Smith Committed by David Howells

af_rxrpc: Handle frames delivered from another VM

On input, CHECKSUM_PARTIAL should be treated the same way as
CHECKSUM_UNNECESSARY. See include/linux/skbuff.h
Signed-off-by: default avatarTim Smith <tim@electronghost.co.uk>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 24a9981e
...@@ -180,7 +180,8 @@ int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, ...@@ -180,7 +180,8 @@ int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock,
if (copy > len - copied) if (copy > len - copied)
copy = len - copied; copy = len - copied;
if (skb->ip_summed == CHECKSUM_UNNECESSARY) { if (skb->ip_summed == CHECKSUM_UNNECESSARY ||
skb->ip_summed == CHECKSUM_PARTIAL) {
ret = skb_copy_datagram_iovec(skb, offset, ret = skb_copy_datagram_iovec(skb, offset,
msg->msg_iov, copy); msg->msg_iov, copy);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment