]> www.infradead.org Git - users/dwmw2/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:42 +0000 (12:10 -0500)
commit9ad26963bf7a55784e1f2407bf2bc3d25f843a4d
tree4aa08d466925c455ab483429a31c5436cfb3d3cf
parent15ad066065f54e3e0d095d3ffa1d2216dd941048
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>
(cherry picked from commit c5d083c561a4f5297cc2e44a2f3cef3324d77a88)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/net_rx_pkt.c