[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] rtl8193: switch to use qemu_receive_packet() for loopback
From: |
Alexander Bulekov |
Subject: |
[PATCH] rtl8193: switch to use qemu_receive_packet() for loopback |
Date: |
Fri, 26 Feb 2021 13:47:53 -0500 |
This patch switches to use qemu_receive_packet() which can detect
reentrancy and return early.
Buglink: https://bugs.launchpad.net/qemu/+bug/1910826
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
---
Although it's not a nc->info->receive() call, maybe this can also go in
this series?
-Alex
hw/net/rtl8139.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index 4675ac878e..90b4fc63ce 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1795,7 +1795,7 @@ static void rtl8139_transfer_frame(RTL8139State *s,
uint8_t *buf, int size,
}
DPRINTF("+++ transmit loopback mode\n");
- rtl8139_do_receive(qemu_get_queue(s->nic), buf, size, do_interrupt);
+ qemu_receive_packet(qemu_get_queue(s->nic), buf, size);
if (iov) {
g_free(buf2);
--
2.28.0
- Re: [PATCH 3/6] dp8393x: switch to use qemu_receive_packet() for loopback packet, (continued)
[PATCH 4/6] msf2-mac: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/02/24
[PATCH 5/6] sungem: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/02/24
[PATCH 6/6] tx_pkt: switch to use qemu_receive_packet_iov() for loopback, Jason Wang, 2021/02/24
Re: [PATCH 0/6] Detect reentrant RX casue by loopback, no-reply, 2021/02/24
[PATCH] rtl8193: switch to use qemu_receive_packet() for loopback,
Alexander Bulekov <=