ia64/xen-unstable

changeset 9017:ec92f986411e

Default minimum number of receive buffers queued by netfront is now 64, not 8.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Feb 24 17:50:20 2006 +0100 (2006-02-24)
parents cf1c1bb9f6d2
children 3048761dc368
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Fri Feb 24 17:32:58 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Fri Feb 24 17:50:20 2006 +0100
     1.3 @@ -114,6 +114,7 @@ struct netfront_info
     1.4  
     1.5  	/* Receive-ring batched refills. */
     1.6  #define RX_MIN_TARGET 8
     1.7 +#define RX_DFL_MIN_TARGET 64
     1.8  #define RX_MAX_TARGET NET_RX_RING_SIZE
     1.9  	int rx_min_target, rx_max_target, rx_target;
    1.10  	struct sk_buff_head rx_batch;
    1.11 @@ -1102,8 +1103,8 @@ static int create_netdev(int handle, str
    1.12  	spin_lock_init(&np->rx_lock);
    1.13  
    1.14  	skb_queue_head_init(&np->rx_batch);
    1.15 -	np->rx_target     = RX_MIN_TARGET;
    1.16 -	np->rx_min_target = RX_MIN_TARGET;
    1.17 +	np->rx_target     = RX_DFL_MIN_TARGET;
    1.18 +	np->rx_min_target = RX_DFL_MIN_TARGET;
    1.19  	np->rx_max_target = RX_MAX_TARGET;
    1.20  
    1.21  	init_timer(&np->rx_refill_timer);