rtl8139: Do not consume the packet during overflow in standard mode.
commitf6737604da3b44322a91ebaa4b184aa519bbb66a
authorVladislav Yasevich <vyasevic@redhat.com>
Tue, 1 Sep 2015 15:26:46 +0000 (1 11:26 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Oct 2015 00:57:30 +0000 (20 19:57 -0500)
treed4403410c27c4fd1adc936e8356ed5e74e9717fb
parentd2b0f96fe2762e2863a6fbbb0acb02606537cc9e
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>
(cherry picked from commit 26c4e7ca72d970d120f0f51244bc8d37458512a0)
*removed dependency on b76f21a7
*removed context dependency on 4cbea598
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/rtl8139.c
tcg/aarch64/tcg-target.c