projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
056ae92
)
Add comment.
author
Ben Pfaff
<blp@nicira.com>
Mon, 26 Jan 2009 17:56:11 +0000
(09:56 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 26 Jan 2009 17:56:42 +0000
(09:56 -0800)
Thanks to Martin via DK for suggestion.
lib/rconn.c
patch
|
blob
|
history
diff --git
a/lib/rconn.c
b/lib/rconn.c
index 96e413466d4d4bc8690973f58537b1cbbd0c5303..0ec847470b11de5fffe1bd0d5a21757a0efd1fe4 100644
(file)
--- a/
lib/rconn.c
+++ b/
lib/rconn.c
@@
-517,6
+517,11
@@
rconn_send(struct rconn *rc, struct ofpbuf *b, int *n_queued)
++*n_queued;
}
queue_push_tail(&rc->txq, b);
+
+ /* If the queue was empty before we added 'b', try to send some
+ * packets. (But if the queue had packets in it, it's because the
+ * vconn is backlogged and there's no point in stuffing more into it
+ * now. We'll get back to that in rconn_run().) */
if (rc->txq.n == 1) {
try_send(rc);
}