ia64/xen-unstable

changeset 5786:79bb7dfb8fc1

Temporary fix for netif ring overflow, until we move
netfront/netback to grant tables.
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 15 08:22:18 2005 +0000 (2005-07-15)
parents 8d04aa7b4280
children 50da9b240a1f
files xen/include/public/io/netif.h
line diff
     1.1 --- a/xen/include/public/io/netif.h	Fri Jul 15 07:53:46 2005 +0000
     1.2 +++ b/xen/include/public/io/netif.h	Fri Jul 15 08:22:18 2005 +0000
     1.3 @@ -46,8 +46,18 @@ typedef u32 NETIF_RING_IDX;
     1.4  #define MASK_NETIF_RX_IDX(_i) ((_i)&(NETIF_RX_RING_SIZE-1))
     1.5  #define MASK_NETIF_TX_IDX(_i) ((_i)&(NETIF_TX_RING_SIZE-1))
     1.6  
     1.7 +#ifdef __x86_64__
     1.8 +/*
     1.9 + * This restriction can be lifted when we move netfront/netback to use
    1.10 + * grant tables. This will remove memory_t fields from the above structures
    1.11 + * and thus relax natural alignment restrictions.
    1.12 + */
    1.13 +#define NETIF_TX_RING_SIZE 128
    1.14 +#define NETIF_RX_RING_SIZE 128
    1.15 +#else
    1.16  #define NETIF_TX_RING_SIZE 256
    1.17  #define NETIF_RX_RING_SIZE 256
    1.18 +#endif
    1.19  
    1.20  /* This structure must fit in a memory page. */
    1.21  typedef struct netif_tx_interface {