[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/8] rtl8139: Fix behaviour for old kernels.
From: |
Jason Wang |
Subject: |
[PULL 1/8] rtl8139: Fix behaviour for old kernels. |
Date: |
Fri, 2 Aug 2024 11:19:22 +0800 |
From: Hans <sungdgdhtryrt@gmail.com>
Old linux kernel rtl8139 drivers (ex. debian 2.1) uses outb to set the rx
mode for RxConfig. Unfortunatelly qemu does not support outb for RxConfig.
Signed-off-by: Hans <sungdgdhtryrt@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
hw/net/rtl8139.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index 897c86ec41..03a204ef8a 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -2738,7 +2738,11 @@ static void rtl8139_io_writeb(void *opaque, uint8_t
addr, uint32_t val)
}
break;
-
+ case RxConfig:
+ DPRINTF("RxConfig write(b) val=0x%02x\n", val);
+ rtl8139_RxConfig_write(s,
+ (rtl8139_RxConfig_read(s) & 0xFFFFFF00) | val);
+ break;
default:
DPRINTF("not implemented write(b) addr=0x%x val=0x%02x\n", addr,
val);
--
2.42.0
- [PULL 0/8] Net patches, Jason Wang, 2024/08/01
- [PULL 1/8] rtl8139: Fix behaviour for old kernels.,
Jason Wang <=
- [PULL 2/8] virtio-net: Ensure queue index fits with RSS, Jason Wang, 2024/08/01
- [PULL 3/8] virtio-net: Fix network stall at the host side waiting for kick, Jason Wang, 2024/08/01
- [PULL 4/8] net: update netdev stream/dgram man page, Jason Wang, 2024/08/01
- [PULL 5/8] net: update netdev stream man page with unix socket, Jason Wang, 2024/08/01
- [PULL 6/8] net: update netdev dgram man page with unix socket, Jason Wang, 2024/08/01
- [PULL 7/8] net: update netdev stream man page with the reconnect parameter, Jason Wang, 2024/08/01
- [PULL 8/8] net: Reinstate '-net nic, model=help' output as documented in man page, Jason Wang, 2024/08/01
- Re: [PULL 0/8] Net patches, Richard Henderson, 2024/08/02