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: pull-nvme-20200902~1696^2~19 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=99a00e55c7dbf2fe622e77d6f7f563b8a5fe5d94;p=qemu-nvme.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 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; }