mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06: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:
parent
00d5c2406b
commit
ada1a33f9a
4 changed files with 12 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue