]> Git Repo - qemu.git/commitdiff
net: Add a 'do_not_pad" to NetClientState
authorBin Meng <[email protected]>
Wed, 17 Mar 2021 06:26:28 +0000 (14:26 +0800)
committerJason Wang <[email protected]>
Mon, 22 Mar 2021 09:34:31 +0000 (17:34 +0800)
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
include/net/net.h

index a02949f6db46c7e6e952f3901c0ade1ebdd2f658..3559f3ca1991c706f98d1bd80293fcf60ff58d5d 100644 (file)
@@ -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;
 };
 
This page took 0.02454 seconds and 4 git commands to generate.