summaryrefslogtreecommitdiffstats
path: root/net/colo.h
diff options
context:
space:
mode:
authorRao, Lei2021-06-08 10:23:29 +0200
committerJason Wang2021-06-11 04:30:13 +0200
commit9b492719dd0445c676da6805c84f9a5893583d1c (patch)
tree10a55b5c2d74ea9097a7e30f1b6cda6711bd4a39 /net/colo.h
parentRemove migrate_set_block_enabled in checkpoint (diff)
downloadqemu-9b492719dd0445c676da6805c84f9a5893583d1c.tar.gz
qemu-9b492719dd0445c676da6805c84f9a5893583d1c.tar.xz
qemu-9b492719dd0445c676da6805c84f9a5893583d1c.zip
Add a function named packet_new_nocopy for COLO.
Use the packet_new_nocopy instead of packet_new in the filter-rewriter module. There will be one less memory copy in the processing of each network packet. Signed-off-by: Lei Rao <lei.rao@intel.com> Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/colo.h')
-rw-r--r--net/colo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/colo.h b/net/colo.h
index 573ab91785..d91cd245c4 100644
--- a/net/colo.h
+++ b/net/colo.h
@@ -101,6 +101,7 @@ bool connection_has_tracked(GHashTable *connection_track_table,
ConnectionKey *key);
void connection_hashtable_reset(GHashTable *connection_track_table);
Packet *packet_new(const void *data, int size, int vnet_hdr_len);
+Packet *packet_new_nocopy(void *data, int size, int vnet_hdr_len);
void packet_destroy(void *opaque, void *user_data);
void packet_destroy_partial(void *opaque, void *user_data);