Re: [Qemu-devel] [PATCH 15/32] net: reorganize headers

2012-10-25 Thread Stefan Hajnoczi
On Wed, Oct 24, 2012 at 02:58:45PM +0200, Paolo Bonzini wrote: +struct virtio_net_hdr +{ +#define VIRTIO_NET_HDR_F_NEEDS_CSUM 1 // Use csum_start, csum_offset +#define VIRTIO_NET_HDR_F_DATA_VALID2 // Csum is valid +uint8_t flags; +#define VIRTIO_NET_HDR_GSO_NONE

[Qemu-devel] [PATCH 15/32] net: reorganize headers

2012-10-24 Thread Paolo Bonzini
Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend.