From 4317a9e745861183ae62ccbfc2816b90482000d2 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 26 Jan 2009 09:56:11 -0800 Subject: [PATCH] Add comment. Thanks to Martin via DK for suggestion. --- lib/rconn.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.30.2