rtl8139: Do not consume the packet during overflow in standard mode.
commit26c4e7ca72d970d120f0f51244bc8d37458512a0
authorVladislav Yasevich <vyasevic@redhat.com>
Tue, 1 Sep 2015 15:26:46 +0000 (1 11:26 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Sep 2015 12:42:31 +0000 (2 13:42 +0100)
tree77a907039f026608fccb91362ee5ab6b94bb6a19
parentfabdcd3392f16fc666b1d04fc1bbe5f1dbbf10a4
rtl8139: Do not consume the packet during overflow in standard mode.

When operation in standard mode, we currently return the size
of packet during buffer overflow.  This consumes the overflow
packet.  Return 0 instead so we can re-process the overflow packet
when we have room.

This fixes issues with lost/dropped fragments of large messages.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id: 1441121206-6997-3-git-send-email-vyasevic@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/rtl8139.c