diff options
| author | Mark Cave-Ayland | 2019-06-30 19:21:50 +0200 |
|---|---|---|
| committer | Mark Cave-Ayland | 2019-07-02 23:49:08 +0200 |
| commit | 29df47a5cc4133a31259c24ffdf26bf25080558a (patch) | |
| tree | 91e79f11adc00475af94a2f12241c9d05f13adbf /python/qemu/machine.py | |
| parent | sunhme: flush any queued packets when HME_MAC_RXCFG_ENABLE bit is raised (diff) | |
| download | qemu-29df47a5cc4133a31259c24ffdf26bf25080558a.tar.gz qemu-29df47a5cc4133a31259c24ffdf26bf25080558a.tar.xz qemu-29df47a5cc4133a31259c24ffdf26bf25080558a.zip | |
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>
Diffstat (limited to 'python/qemu/machine.py')
0 files changed, 0 insertions, 0 deletions
