[Qemu-devel] [PATCH 0/5] sunhme: misc fixes for tap mode

Mark Cave-Ayland posted 5 patches 4 years, 10 months ago
Test checkpatch passed
Test s390x passed
Test asan passed
Test docker-mingw@fedora passed
Test FreeBSD passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190630173203.9620-1-mark.cave-ayland@ilande.co.uk
Maintainers: Jason Wang <jasowang@redhat.com>
hw/net/sunhme.c     | 29 +++++++++++++++++++++++++----
hw/net/trace-events |  2 ++
2 files changed, 27 insertions(+), 4 deletions(-)
[Qemu-devel] [PATCH 0/5] sunhme: misc fixes for tap mode
Posted by Mark Cave-Ayland 4 years, 10 months ago
This patchset contains a set of fixes found whilst investigating some privately
reported issues when using the sunhme device in tap mode on a busy network.

The first patch simply adds a trace-event for logging the PCI IRQ which was
useful in help diagnose the issues in the subsequent patches.

Patches 2-4 fix errors in enabling and disabling the receiver found during
local testing with NetBSD which toggles the receiver state on startup.

Finally patch 5 fixes a bug whereby on a busy network it is possible to
overflow the descriptor ring and therefore we must report this back correctly
to the OS to allow it to handle the situation accordingly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

Mark Cave-Ayland (5):
  sunhme: add trace event for logging PCI IRQ
  sunhme: fix incorrect constant in sunhme_can_receive()
  sunhme: flush any queued packets when HME_MAC_RXCFG_ENABLE bit is
    raised
  sunhme: fix return values from sunhme_receive() during receive packet
    processing
  sunhme: ensure that RX descriptor ring overflow is indicated to client
    driver

 hw/net/sunhme.c     | 29 +++++++++++++++++++++++++----
 hw/net/trace-events |  2 ++
 2 files changed, 27 insertions(+), 4 deletions(-)

-- 
2.11.0