From: Bin Meng Date: Sun, 25 Jun 2023 01:53:21 +0000 (+0800) Subject: hw/net: ftgmac100: Drop the small packet check in the receive path X-Git-Tag: v8.1.0-rc0~25^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71e11da1facdf08c91b3763bd9a72c2121f2bbb6;p=thirdparty%2Fqemu.git hw/net: ftgmac100: Drop the small packet check in the receive path Now that we have implemented unified short frames padding in the QEMU networking codes, the small packet check logic in the receive path is no longer needed. Suggested-by: Cédric Le Goater Reviewed-by: Cédric Le Goater Signed-off-by: Bin Meng Signed-off-by: Jason Wang --- diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index d3bf14be539..702b001be2f 100644 --- a/hw/net/ftgmac100.c +++ b/hw/net/ftgmac100.c @@ -968,14 +968,6 @@ static ssize_t ftgmac100_receive(NetClientState *nc, const uint8_t *buf, return -1; } - /* TODO : Pad to minimum Ethernet frame length */ - /* handle small packets. */ - if (size < 10) { - qemu_log_mask(LOG_GUEST_ERROR, "%s: dropped frame of %zd bytes\n", - __func__, size); - return size; - } - if (!ftgmac100_filter(s, buf, size)) { return size; }