mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
net/colo.c: Make vnet_hdr_len as packet property
We can use this property flush and send packet with vnet_hdr_len. Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
@ -43,6 +43,8 @@ typedef struct Packet {
|
||||
int size;
|
||||
/* Time of packet creation, in wall clock ms */
|
||||
int64_t creation_ms;
|
||||
/* Get vnet_hdr_len from filter */
|
||||
uint32_t vnet_hdr_len;
|
||||
} Packet;
|
||||
|
||||
typedef struct ConnectionKey {
|
||||
@ -82,7 +84,7 @@ Connection *connection_get(GHashTable *connection_track_table,
|
||||
ConnectionKey *key,
|
||||
GQueue *conn_list);
|
||||
void connection_hashtable_reset(GHashTable *connection_track_table);
|
||||
Packet *packet_new(const void *data, int size);
|
||||
Packet *packet_new(const void *data, int size, int vnet_hdr_len);
|
||||
void packet_destroy(void *opaque, void *user_data);
|
||||
|
||||
#endif /* QEMU_COLO_PROXY_H */
|
||||
|
Reference in New Issue
Block a user