From: Wei Liu Subject: Re: [PATCH 1/2] netif: define XEN_NETIF_MAX_TX_SIZE in public header Date: Wed, 1 May 2013 12:17:32 +0100 Message-ID: <20130501111732.GF9780@zion.uk.xensource.com> References: <1367341614-20009-1-git-send-email-wei.liu2@citrix.com> <1367341614-20009-2-git-send-email-wei.liu2@citrix.com> <1367403448.3142.679.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1367403448.3142.679.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Wei Liu , "jbeulich@suse.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, May 01, 2013 at 11:17:28AM +0100, Ian Campbell wrote: > On Tue, 2013-04-30 at 18:06 +0100, Wei Liu wrote: > > This is the maximum supportted size of a packet. > > Too many t's in supported. > > Worth mentioning that this limit comes from the size of > netif_tx_request.size. > > > Signed-off-by: Wei Liu > > Acked-by: Ian Campbell > > > --- -------8<---- >From b52999bc45cf1fcac369346c14b03bcf844db410 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 30 Apr 2013 17:58:48 +0100 Subject: [PATCH] netif: define XEN_NETIF_MAX_TX_SIZE in public header This is the maximum supported size of a packet. It comes from the size of netif_tx_request.size. Signed-off-by: Wei Liu Acked-by: Ian Campbell --- xen/include/public/io/netif.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/include/public/io/netif.h b/xen/include/public/io/netif.h index b184e49..ccde53b 100644 --- a/xen/include/public/io/netif.h +++ b/xen/include/public/io/netif.h @@ -65,6 +65,7 @@ #define _NETTXF_extra_info (3) #define NETTXF_extra_info (1U<<_NETTXF_extra_info) +#define XEN_NETIF_MAX_TX_SIZE 0xFFFF struct netif_tx_request { grant_ref_t gref; /* Reference to buffer page */ uint16_t offset; /* Offset within buffer page */ -- 1.7.10.4