summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorBin Meng2021-03-17 07:26:28 +0100
committerJason Wang2021-03-22 10:34:31 +0100
commit935344bed6769d6bcb74c6d992818929a6ccb35b (patch)
tree3891a679175c09ce6986f4961e19539d684d825c /include/net/net.h
parentnet: eth: Add a helper to pad a short Ethernet frame (diff)
downloadqemu-935344bed6769d6bcb74c6d992818929a6ccb35b.tar.gz
qemu-935344bed6769d6bcb74c6d992818929a6ccb35b.tar.xz
qemu-935344bed6769d6bcb74c6d992818929a6ccb35b.zip
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 <bmeng.cn@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
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;
};