From: Bin Meng Date: Wed, 17 Mar 2021 06:26:28 +0000 (+0800) Subject: net: Add a 'do_not_pad" to NetClientState X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=935344bed6769d6bcb74c6d992818929a6ccb35b;p=qemu.git net: Add a 'do_not_pad" to NetClientState This adds a flag in NetClientState, so that a net client can tell its peer that the packets do not need to be padded to the minimum size of an Ethernet frame (60 bytes) before sending to it. Signed-off-by: Bin Meng Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Jason Wang --- diff --git a/include/net/net.h b/include/net/net.h index a02949f6db..3559f3ca19 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -103,6 +103,7 @@ struct NetClientState { int vring_enable; int vnet_hdr_len; bool is_netdev; + bool do_not_pad; /* do not pad to the minimum ethernet frame length */ QTAILQ_HEAD(, NetFilterState) filters; };