diff options
author | Bin Meng <bmeng@tinylab.org> | 2023-06-25 09:53:21 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-07-07 16:35:12 +0800 |
commit | 71e11da1facdf08c91b3763bd9a72c2121f2bbb6 (patch) | |
tree | c5ea2fbfd2217dda503b8824015bb966a59bb4d0 /hw/net | |
parent | 0fe0efc9cd594eb0ce36cc7722f0ce1d038df8d7 (diff) | |
download | qemu-71e11da1facdf08c91b3763bd9a72c2121f2bbb6.zip qemu-71e11da1facdf08c91b3763bd9a72c2121f2bbb6.tar.gz qemu-71e11da1facdf08c91b3763bd9a72c2121f2bbb6.tar.bz2 |
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 <clg@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/ftgmac100.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index d3bf14b..702b001 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; } |