[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] net/dp8393x: remove check of runt packets
From: |
Leon Alrae |
Subject: |
[Qemu-devel] [PULL 4/5] net/dp8393x: remove check of runt packets |
Date: |
Tue, 28 Jul 2015 11:04:47 +0100 |
From: Hervé Poussineau <address@hidden>
Ethernet requires that messages are at least 64 bytes on the wire. This
limitation does not exist on emulation (no wire message), so remove the
check. Netcard is now able to receive small network packets.
Signed-off-by: Hervé Poussineau <address@hidden>
Reviewed-by: Aurelien Jarno <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>
---
hw/net/dp8393x.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c
index 93d6a47..0f45146 100644
--- a/hw/net/dp8393x.c
+++ b/hw/net/dp8393x.c
@@ -643,11 +643,6 @@ static int dp8393x_receive_filter(dp8393xState *s, const
uint8_t * buf,
static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
int i;
- /* Check for runt packet (remember that checksum is not there) */
- if (size < 64 - 4) {
- return (s->regs[SONIC_RCR] & SONIC_RCR_RNT) ? 0 : -1;
- }
-
/* Check promiscuous mode */
if ((s->regs[SONIC_RCR] & SONIC_RCR_PRO) && (buf[0] & 1) == 0) {
return 0;
--
2.1.0
- [Qemu-devel] [PULL 0/5] target-mips queue for 2.4, Leon Alrae, 2015/07/28
- [Qemu-devel] [PULL 1/5] target-mips: fix passing incompatible pointer type in machine.c, Leon Alrae, 2015/07/28
- [Qemu-devel] [PULL 3/5] net/dp8393x: disable user creation, Leon Alrae, 2015/07/28
- [Qemu-devel] [PULL 4/5] net/dp8393x: remove check of runt packets,
Leon Alrae <=
- [Qemu-devel] [PULL 5/5] net/dp8393x: do not use memory_region_init_rom_device with NULL, Leon Alrae, 2015/07/28
- [Qemu-devel] [PULL 2/5] target-mips: fix offset calculation for Interrupts, Leon Alrae, 2015/07/28
- Re: [Qemu-devel] [PULL 0/5] target-mips queue for 2.4, Peter Maydell, 2015/07/28