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-devel

[Xen-devel] RE: A Patch for modify DomU network transmit rate dynamicall


 Well, I tested, it is necessary to modify netif->remaining_credit.
So question left
1. currently I use atomic64_t, is it necessary
2. Could rmmmod netback and insmod netback when apply this patch?
 
thx

From: tinnycloud@xxxxxxxxxxx
To: xen-devel@xxxxxxxxxxxxxxxxxxx
CC: keir@xxxxxxx; daniel.stodden@xxxxxxxxxx; jeremy@xxxxxxxx
Subject: A Patch for modify DomU network transmit rate dynamically
Date: Thu, 4 Nov 2010 11:09:55 +0800

Hi :
 
     I've written a patch which supports dynamically update domU netif transmit rate.
     But after I finish it, I have some questiones on the patch itself.
 
     1. It seems I don't need to update netif->remaining_credit, since in netback,c: tx_add_credit()
         will update automatically on every transmit, so all I need to do is update netif->credit_bytes
         and netif->credit_usec, right? Also, am I do the right way?
     2. I notice that netback is also a module, so I think it can be rmmod or insmod, right? If so
         I can apply this patch online(with no affect on the running VM)
 
       Could someone help me to confirm this, many thanks.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>