mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
tap: generalize code for different vnet header len
Make host vnet header length a structure field in preparation for using this support in linux kernel. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a05e8a6e90
commit
ef4252b149
2 changed files with 20 additions and 14 deletions
|
@ -52,4 +52,10 @@ struct virtio_net_hdr
|
|||
uint16_t csum_offset;
|
||||
};
|
||||
|
||||
struct virtio_net_hdr_mrg_rxbuf
|
||||
{
|
||||
struct virtio_net_hdr hdr;
|
||||
uint16_t num_buffers; /* Number of merged rx buffers */
|
||||
};
|
||||
|
||||
#endif /* QEMU_TAP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue