]> git.proxmox.com Git - mirror_qemu.git/commit
NetRxPkt: Account buffer with ETH header in IOV length
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 16 Feb 2017 12:29:35 +0000 (14:29 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (11:46 +0800)
commitc5d083c561a4f5297cc2e44a2f3cef3324d77a88
treeb9c00163f5017fd1cc4e930a0f96dfda81421c59
parentd5e772146d2bbc92e5126c145eddef3b2843d026
NetRxPkt: Account buffer with ETH header in IOV length

In case of VLAN stripping ETH header is stored in a
separate chunk and length of IOV should take this into
account.

This patch fixes checksum validation for RX packets
with VLAN header.

Devices affected by this problem: e1000e and vmxnet3.

Cc: qemu-stable@nongnu.org
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/net_rx_pkt.c