From: Cédric Le Goater Date: Fri, 8 Jun 2018 12:15:32 +0000 (+0100) Subject: ftgmac100: remove check on runt messages X-Git-Tag: v3.0.0-rc0~102^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94;p=thirdparty%2Fqemu.git 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 Message-id: 20180530061711.23673-5-clg@kaod.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index 8a7f274dc11..909c1182eeb 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; }