]> git.ipfire.org Git - thirdparty/qemu.git/commit
NetRxPkt: Do not try to pull more data than present
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 16 Feb 2017 12:29:34 +0000 (14:29 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:41 +0000 (12:10 -0500)
commit15ad066065f54e3e0d095d3ffa1d2216dd941048
tree0d7e6a90d27476daf62c89334ed8cfde7ff23422
parent7cfd9c114bdc39a9b94fb7a42058e421edd1d285
NetRxPkt: Do not try to pull more data than present

In case of VLAN stripping, ETH header put into a
separate buffer, therefore amont of data copied
from original IOV should be smaller.

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 d5e772146d2bbc92e5126c145eddef3b2843d026)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/net_rx_pkt.c