WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-devel] [PATCH][RFC] correction trouble of short message in UDP

On Fri, Jan 26, 2007 at 01:17:19AM +1100, Herbert Xu wrote:
> 
> diff -r bea505a69722 linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
> --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c    Tue Jan 23 
> 15:58:05 2007 +0000
> +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c    Fri Jan 26 
> 01:14:19 2007 +1100
> @@ -138,8 +138,10 @@ static inline int netif_needs_gso(struct
>  
>  #define GRANT_INVALID_REF    0
>  
> -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE)
> -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE)
> +#define NET_TX_RING_SIZE \
> +     (__RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) & 255)
> +#define NET_RX_RING_SIZE \
> +     (__RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) & 255)

Actually this can't work because the size is independently derived in
two different places...

So your idea definitely sounds better.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel