NetRxPkt: Do not try to pull more data than present
commitd5e772146d2bbc92e5126c145eddef3b2843d026
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 16 Feb 2017 12:29:34 +0000 (16 14:29 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (6 11:46 +0800)
treead8a2e881b1a28cb89290acf9712adc1822f3370
parentdf8bf7a7fe75eb5d5caffa55f5cd4292b757aea6
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>
hw/net/net_rx_pkt.c