From: Ian Campbell <ian.campbell@citrix.com>
To: Paul Durrant <paul.durrant@citrix.com>, xen-devel@lists.xenproject.org
Cc: Keir Fraser <keir@xen.org>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Jan Beulich <jbeulich@suse.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH v7 1/2] public/io/netif.h: clarifications to wire formats
Date: Mon, 18 Jan 2016 14:55:16 +0000 [thread overview]
Message-ID: <1453128916.6020.157.camel@citrix.com> (raw)
In-Reply-To: <1452592736-6463-2-git-send-email-paul.durrant@citrix.com>
On Tue, 2016-01-12 at 09:58 +0000, Paul Durrant wrote:
> My previous patch 03809ae7 "document transmit and receive wire formats
> separately" improved documentation of the receive and transmit wire
> formats but further clarifications were requested.
>
> This patch adds those clarifications.
>
> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Keir Fraser <keir@xen.org>
> Cc: Tim Deegan <tim@xen.org>
> ---
>
> v6:
> - v4 of the original patch was committed so this is an
> incremental version of the patch in v5.
>
> v5:
> - Add extra clarifications.
> ---
> xen/include/public/io/netif.h | 28 ++++++++++++++++++++++++----
> 1 file changed, 24 insertions(+), 4 deletions(-)
>
> diff --git a/xen/include/public/io/netif.h
> b/xen/include/public/io/netif.h
> index 1790ea0..0a3272f 100644
> --- a/xen/include/public/io/netif.h
> +++ b/xen/include/public/io/netif.h
> @@ -154,19 +154,29 @@
> * Guest transmit
> * ==============
> *
> - * This is the 'wire' format for packets:
> + * This is the 'wire' format for transmit (frontend -> backend) packets:
> + *
> * Fragment 1: netif_tx_request_t - flags = NETTXF_*
> * size = total packet size
> * [Extra 1: netif_extra_info_t] - (only if fragment 1 flags include
> * NETTXF_extra_info)
> + * ...
> * [Extra N: netif_extra_info_t] - (only if extra N-1 flags include
> * XEN_NETIF_EXTRA_MORE)
> * ...
> * Fragment N: netif_tx_request_t - (only if fragment N-1 flags
> include
> - * NETTXF_more_data)
> + * NETTXF_more_data - flags on
> preceding
> + * extras are not relevent here)
> * flags = 0
> * size = fragment size
> *
> + * NOTE:
> + *
> + * This format slightly is different from that used for receive
> + * (backend -> frontend) packets. Specifically, in a multi-fragment
> + * packet the actual size of fragment 1 can only be determined by
> + * subtracting the sizes of fragments 2..N from the total packet size.
> + *
> * Ring slot size is 12 octets, however not all request/response
> * structs use the full size.
> *
> @@ -202,19 +212,29 @@
> * Guest receive
> * =============
> *
> - * This is the 'wire' format for packets:
> + * This is the 'wire' format for receive (backend -> frontend) packets:
> + *
> * Fragment 1: netif_rx_request_t - flags = NETRXF_*
> * size = fragment size
> * [Extra 1: netif_extra_info_t] - (only if fragment 1 flags include
> * NETRXF_extra_info)
> + * ...
> * [Extra N: netif_extra_info_t] - (only if extra N-1 flags include
> * XEN_NETIF_EXTRA_MORE)
> * ...
> * Fragment N: netif_rx_request_t - (only if fragment N-1 flags
> include
> - * NETRXF_more_data)
> + * NETRXF_more_data - flags on
> preceding
> + * extras are not relevent here)
> * flags = 0
> * size = fragment size
> *
> + * NOTE:
> + *
> + * This format slightly is different from that used for transmit
> + * (frontend -> backend) packets. Specifically, in a multi-fragment
> + * packet the size of the packet can only be determined by summing the
> + * sizes of fragments 1..N.
> + *
> * Ring slot size is 8 octets.
> *
> * rx request (netif_rx_request_t)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-01-18 14:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 9:58 [PATCH v7 0/2] public/io/netif.h: support for toeplitz hashing Paul Durrant
2016-01-12 9:58 ` [PATCH v7 1/2] public/io/netif.h: clarifications to wire formats Paul Durrant
2016-01-18 14:55 ` Ian Campbell [this message]
2016-01-12 9:58 ` [PATCH v7 2/2] public/io/netif.h: document control ring and toeplitz hashing Paul Durrant
2016-01-18 16:07 ` Ian Campbell
2016-01-18 16:35 ` Jan Beulich
2016-01-18 16:57 ` Ian Campbell
[not found] ` <56dc5108a3054e5884b217357b73a3bc@AMSPEX02CL03.citrite.net>
2016-01-19 11:34 ` Ian Campbell
2016-01-18 10:15 ` [PATCH v7 0/2] public/io/netif.h: support for " Paul Durrant
2016-02-02 5:02 ` Bob Liu
2016-02-02 9:33 ` Paul Durrant
2016-02-02 11:05 ` Bob Liu
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=1453128916.6020.157.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=paul.durrant@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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).