Re: [Qemu-devel] [PATCH 3/5] NetRxPkt: Do not try to pull more data than present

2017-03-03 Thread Philippe Mathieu-Daudé
this seems correct but unit-test would confirm any doubt. On 02/16/2017 09:29 AM, Dmitry Fleytman wrote: In case of VLAN stripping, ETH header put into a separate buffer, therefore amont of data copied from original IOV should be smaller. Signed-off-by: Dmitry Fleytman

[Qemu-devel] [PATCH 3/5] NetRxPkt: Do not try to pull more data than present

2017-02-16 Thread Dmitry Fleytman
In case of VLAN stripping, ETH header put into a separate buffer, therefore amont of data copied from original IOV should be smaller. Signed-off-by: Dmitry Fleytman --- hw/net/net_rx_pkt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git