[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Default minimum number of receive buffers queued by netfront is now 64, not 8.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID ec92f986411e821955dccdb9b955e9e664f8ed0d
# Parent  cf1c1bb9f6d200ffa0bc0e7d7310feb03dd34481
Default minimum number of receive buffers queued by netfront is now 64, not 8.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r cf1c1bb9f6d2 -r ec92f986411e 
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Fri Feb 24 
16:32:58 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Fri Feb 24 
16:50:20 2006
@@ -114,6 +114,7 @@
 
        /* Receive-ring batched refills. */
 #define RX_MIN_TARGET 8
+#define RX_DFL_MIN_TARGET 64
 #define RX_MAX_TARGET NET_RX_RING_SIZE
        int rx_min_target, rx_max_target, rx_target;
        struct sk_buff_head rx_batch;
@@ -1102,8 +1103,8 @@
        spin_lock_init(&np->rx_lock);
 
        skb_queue_head_init(&np->rx_batch);
-       np->rx_target     = RX_MIN_TARGET;
-       np->rx_min_target = RX_MIN_TARGET;
+       np->rx_target     = RX_DFL_MIN_TARGET;
+       np->rx_min_target = RX_DFL_MIN_TARGET;
        np->rx_max_target = RX_MAX_TARGET;
 
        init_timer(&np->rx_refill_timer);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.