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