]> git.proxmox.com Git - mirror_qemu.git/commit
sunhme: fix return values from sunhme_receive() during receive packet processing
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 30 Jun 2019 17:21:50 +0000 (18:21 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 2 Jul 2019 21:49:08 +0000 (22:49 +0100)
commit29df47a5cc4133a31259c24ffdf26bf25080558a
tree91e79f11adc00475af94a2f12241c9d05f13adbf
parent1058e1a377680e17bc8b56d5e9cab9559d47a3c1
sunhme: fix return values from sunhme_receive() during receive packet processing

The current return values in sunhme_receive() when processing incoming packets
are inverted from what they should be. Make sure that we return 0 to indicate
the packet was discarded (and polling is to be disabled) and -1 to indicate
that the packet was discarded but polling for incoming data is to be continued.

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