qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [RFC 13/13] dp8393x: fix receiving buffer exhaustion


From: Hervé Poussineau
Subject: Re: [Qemu-block] [RFC 13/13] dp8393x: fix receiving buffer exhaustion
Date: Sat, 9 Jun 2018 10:55:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Le 08/06/2018 à 22:05, Laurent Vivier a écrit :
The card is not able to exit from exhaustion state, because
while the drive consumes the buffers, the RRP is incremented
(when the driver clears the ISR RBE bit), so it stays equal
to RWP, and while RRP == RWP, the card thinks it is always
in exhaustion state. So the driver consumes all the buffers,
but the card cannot receive new ones.

This patch fixes the problem by not incrementing RRP when
the driver clears the ISR RBE bit.

Signed-off-by: Laurent Vivier <address@hidden>
---
  hw/net/dp8393x.c | 31 ++++++++++++++++---------------
  1 file changed, 16 insertions(+), 15 deletions(-)


Works OK on NetBSD 5.1/arc on MIPS Magnum.

Tested-by: Hervé Poussineau <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]