sunhme: ensure that RX descriptor ring overflow is indicated to client driver
commit09340f497e96a62d076b2f223e7b16a7358cfecb
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 30 Jun 2019 17:21:50 +0000 (30 18:21 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 2 Jul 2019 21:49:08 +0000 (2 22:49 +0100)
treed719603d5767d08482925e092698fb8bbdbe6617
parent29df47a5cc4133a31259c24ffdf26bf25080558a
sunhme: ensure that RX descriptor ring overflow is indicated to client driver

On very busy networks connected via a tap interface, it is possible to overflow
the RX descriptor ring in the time between the client driver enabling the RX
MAC and finishing writing the final configuration to the NIC registers.

Ensure that we detect this condition and update the status register accordingly
to indicate an overflow has occurred (and the incoming packet dropped) in order
to prevent the client driver becoming confused.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/net/sunhme.c
hw/net/trace-events