Skip to contentSkip to conversation

Plumb network vif credit-based rate limiting thorugh xenbus]

Fwd: Nivedita Singhvi 1 participant 1 message Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

Hi Keir,

I don't mean to pick on any one patch, so my apologies to the authors of the most excellent patch below :)...

However, is this a good time for inclusion of such features? I thought we were trying to put 3.0.2 out any day now? We got bit by a few somewhat harmless changes (like moving the default to -xen), so I was really hoping to see commits limited to the absolutely necessary bug fixes.

Not sure if Novell has already picked up for their upcoming rebase for SLES10, but 3.0.2 release stability should be a goal in it's own right as well, I think.

thanks,
Nivedita

-------- Original Message --------
Subject: [Xen-changelog] Plumb network vif credit-based rate limiting thorugh xenbus
Date: Fri, 31 Mar 2006 17:04:09 +0000
From: Xen patchbot -unstable <[email protected]>
Reply-To: [email protected]
To: [email protected]

# HG changeset patch
# User [email protected]
# Node ID dadadf9aeee713bbe2f8dc040a74f7cea2223f41 # Parent 2769a38f0e3e7ab544293833276a5d8cd0875483 Plumb network vif credit-based rate limiting thorugh xenbus and xend into xm guest config files.

A new vif parameter 'rate' is supported, with an optional time window paremeter for specifying granularity of credit replenishment. The default window is 50ms. For example:

'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms'

From: Chris Clark <[email protected]>

linux-2.6-xen-sparse/drivers/xen/netback/common.h +0 -1
diff -r 2769a38f0e3e -r dadadf9aeee7 linux-2.6-xen-sparse/drivers/xen/netback/common.h
@@ -97,7 +97,6 @@
 #define NET_TX_RING_SIZE __RING_SIZE((netif_tx_sring_t *)0, PAGE_SIZE)
 #define NET_RX_RING_SIZE __RING_SIZE((netif_rx_sring_t *)0, PAGE_SIZE)
 
-void netif_creditlimit(netif_t *netif);
 void netif_disconnect(netif_t *netif);
 
 netif_t *alloc_netif(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN]);
linux-2.6-xen-sparse/drivers/xen/netback/interface.c +0 -19
diff -r 2769a38f0e3e -r dadadf9aeee7 linux-2.6-xen-sparse/drivers/xen/netback/interface.c
@@ -291,25 +291,6 @@
 {
 	INIT_WORK(&netif->free_work, free_netif_callback, (void *)netif);
 	schedule_work(&netif->free_work);
-}
-
-void netif_creditlimit(netif_t *netif)
-{
-#if 0
-	/* Set the credit limit (reset remaining credit to new limit). */
-	netif->credit_bytes     = creditlimit->credit_bytes;
-	netif->remaining_credit = creditlimit->credit_bytes;
-	netif->credit_usec      = creditlimit->period_usec;
-
-	if (netif->status == CONNECTED) {
-		/*
-		 * Schedule work so that any packets waiting under previous
-		 * credit limit are dealt with (acts as a replenishment point).
-		 */
-		netif->credit_timeout.expires = jiffies;
-		netif_schedule_work(netif);
-	}
-#endif
 }
 
 void netif_disconnect(netif_t *netif)
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c +41 -2

56 lines not on this page · raw message

tools/python/xen/xend/server/netif.py +88 -2

125 lines not on this page · raw message

tools/python/xen/xm/create.py +1 -1
diff -r 2769a38f0e3e -r dadadf9aeee7 tools/python/xen/xm/create.py
@@ -552,7 +552,7 @@
 
         def f(k):
             if k not in ['backend', 'bridge', 'ip', 'mac', 'script', 'type',
-                         'vifname']:
+                         'vifname', 'rate']:
                 err('Invalid vif option: ' + k)
 
             config_vif.append([k, d[k]])

_______________________________________________
Xen-changelog mailing list
[email protected]
http://lists.xensource.com/xen-changelog