mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user