From: Stefan Hajnoczi <stefanha@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 15/32] net: reorganize headers
Date: Thu, 25 Oct 2012 09:50:45 +0200 [thread overview]
Message-ID: <20121025075045.GD24994@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1351083542-15272-16-git-send-email-pbonzini@redhat.com>
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_VALID 2 // Csum is valid
> + uint8_t flags;
> +#define VIRTIO_NET_HDR_GSO_NONE 0 // Not a GSO frame
> +#define VIRTIO_NET_HDR_GSO_TCPV4 1 // GSO frame, IPv4 TCP (TSO)
> +#define VIRTIO_NET_HDR_GSO_UDP 3 // GSO frame, IPv4 UDP (UFO)
> +#define VIRTIO_NET_HDR_GSO_TCPV6 4 // GSO frame, IPv6 TCP
> +#define VIRTIO_NET_HDR_GSO_ECN 0x80 // TCP has ECN set
> + uint8_t gso_type;
> + uint16_t hdr_len;
> + uint16_t gso_size;
> + uint16_t csum_start;
> + uint16_t csum_offset;
> +};
Idea for a separate cleanup: net/tap.c doesn't need the definition of
struct virtio_net_hdr or virtio_net_hdr_mrg_rxbuf. It should simply
negotiate vnet_hdr_size between hw/virtio-net.c and the kernel tun
driver. The layout and contents of the struct are not needed by
net/tap.c itself.
Stefan
next prev parent reply other threads:[~2012-10-25 7:51 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 12:58 [Qemu-devel] [PATCH 00/32] Header file renaming and cleanup Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 01/32] libcacard: simplify rules for recursive build Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 02/32] vscclient: use per-target variables Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 03/32] build: adjust setting of QEMU_INCLUDES Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 04/32] build: add $(TARGET_DIR) to "GEN config-target.h" lines Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 05/32] build: move rules from Makefile to */Makefile.objs Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 06/32] build: create ldscripts/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 07/32] build: kill libdis, move disassemblers to disas/ Paolo Bonzini
2012-10-24 13:51 ` Peter Maydell
2012-10-24 12:58 ` [Qemu-devel] [PATCH 08/32] build: kill libuser Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 09/32] janitor: move iovector functions out of cutils.c Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 10/32] janitor: do not rely on indirect inclusions from qemu-char.h Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 11/32] janitor: do not include qemu-char everywhere Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 12/32] net: move Bluetooth stuff out of net.h Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 13/32] net: do not include net.h everywhere Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 14/32] net: move net.c to net/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 15/32] net: reorganize headers Paolo Bonzini
2012-10-25 7:50 ` Stefan Hajnoczi [this message]
2012-10-24 12:58 ` [Qemu-devel] [PATCH 16/32] qemu-ga: move qemu-ga files to qga/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 17/32] ui: move files to ui/ and include/ui/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 18/32] audio: move public header file to include/audio/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 19/32] slirp: move public header file to include/slirp/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 20/32] qapi: move include files to include/qapi/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 21/32] qapi: create qobject/ and include/qobject/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 22/32] block: move include files to include/block/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 23/32] exec: move include files to include/exec/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 24/32] monitor: move include files to include/monitor/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 25/32] migration: move include files to include/migration/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 26/32] qom: move include files to include/qom/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 27/32] misc: move include files to include/qemu/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 28/32] softmmu: move include files to include/sysemu/ Paolo Bonzini
2012-10-24 12:58 ` [Qemu-devel] [PATCH 29/32] softmmu: move remaining include files to include/ subdirectories Paolo Bonzini
2012-10-24 12:59 ` [Qemu-devel] [PATCH 30/32] fpu: move public header file to include/fpu Paolo Bonzini
2012-10-24 12:59 ` [Qemu-devel] [PATCH 31/32] hw: move executable format header files to hw/ Paolo Bonzini
2012-10-24 12:59 ` [Qemu-devel] [PATCH 32/32] janitor: move remaining public headers to include/ Paolo Bonzini
2012-10-24 19:25 ` [Qemu-devel] [PATCH 00/32] Header file renaming and cleanup Andreas Färber
2012-10-25 7:54 ` Stefan Hajnoczi
2012-10-25 8:01 ` Zhi Yong Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121025075045.GD24994@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=aliguori@us.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).