Thread (7 messages) flat view 7 messages, 4 authors, 2013-10-28

Re: [Xen-devel] [PATCH net] xen-netback: use jiffies_64 value to calculate credit timeout

From: Wei Liu <hidden>
Date: 2013-10-28 11:30:44

On Mon, Oct 28, 2013 at 10:58:32AM +0800, annie li wrote:
[...]
quoted
quoted
     if (timer_pending(&vif->credit_timeout))
         return true;
       /* Passed the point where we can replenish credit? */
-    if (time_after_eq(now, next_credit)) {
-        vif->credit_timeout.expires = now;
+    if (time_after_eq64(now, next_credit)) {
+        vif->credit_timeout.expires = (unsigned long)now;
updates credit_window_start as following,
vif->credit_window_start = (unsigned long)now;
both credit_window_start and credit_timeout.expires need to be
updated here,

vif->credit_window_start = (unsigned long)now;
vif->credit_timeout.expires = (unsigned long)now;
IMHO we don't need to update .expires anymore -- we now track the window
with another variable.

Wei.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help