From: Ben Pfaff Date: Mon, 26 Jan 2009 17:56:11 +0000 (-0800) Subject: Add comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4317a9e745861183ae62ccbfc2816b90482000d2;p=openvswitch Add comment. Thanks to Martin via DK for suggestion. --- diff --git a/lib/rconn.c b/lib/rconn.c index 96e41346..0ec84747 100644 --- 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); }