aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 67f6749a0a45..b54ec41adea9 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1685,6 +1685,8 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
1685 vnet_hdr.flags = VIRTIO_NET_HDR_F_NEEDS_CSUM; 1685 vnet_hdr.flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
1686 vnet_hdr.csum_start = skb_checksum_start_offset(skb); 1686 vnet_hdr.csum_start = skb_checksum_start_offset(skb);
1687 vnet_hdr.csum_offset = skb->csum_offset; 1687 vnet_hdr.csum_offset = skb->csum_offset;
1688 } else if (skb->ip_summed == CHECKSUM_UNNECESSARY) {
1689 vnet_hdr.flags = VIRTIO_NET_HDR_F_DATA_VALID;
1688 } /* else everything is zero */ 1690 } /* else everything is zero */
1689 1691
1690 err = memcpy_toiovec(msg->msg_iov, (void *)&vnet_hdr, 1692 err = memcpy_toiovec(msg->msg_iov, (void *)&vnet_hdr,