diff options
author | Cédric Le Goater | 2018-06-08 14:15:32 +0200 |
---|---|---|
committer | Peter Maydell | 2018-06-08 14:15:32 +0200 |
commit | 99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94 (patch) | |
tree | 6776f62096244b10d5c09b7676645a93d89f8d65 | |
parent | ftgmac100: fix multicast hash routine (diff) | |
download | qemu-99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94.tar.gz qemu-99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94.tar.xz qemu-99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94.zip |
ftgmac100: remove check on runt messages
This is a ethernet wire limitation not needed in emulation. It breaks
U-Boot n/w stack also.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20180530061711.23673-5-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/net/ftgmac100.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index 8a7f274dc1..909c1182ee 100644 --- a/hw/net/ftgmac100.c +++ b/hw/net/ftgmac100.c @@ -822,12 +822,6 @@ static ssize_t ftgmac100_receive(NetClientState *nc, const uint8_t *buf, return size; } - if (size < 64 && !(s->maccr & FTGMAC100_MACCR_RX_RUNT)) { - qemu_log_mask(LOG_GUEST_ERROR, "%s: dropped runt frame of %zd bytes\n", - __func__, size); - return size; - } - if (!ftgmac100_filter(s, buf, size)) { return size; } |