From dcff934e6598ed6c6462871ff70e97c41516c6e7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 9 Mar 2009 13:50:16 -0700 Subject: [PATCH] secchan: Optimize flow expiration when not connected. There is no point in composing a flow-expiration message for an ofconn whose rconn is not connected. This optimization might be a win for a standalone vswitch. --- secchan/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secchan/ofproto.c b/secchan/ofproto.c index fa6b11a5..9e32d3df 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -2566,7 +2566,7 @@ send_flow_exp(struct ofproto *p, struct rule *rule, prev = NULL; LIST_FOR_EACH (ofconn, struct ofconn, node, &p->all_conns) { - if (ofconn->send_flow_exp) { + if (ofconn->send_flow_exp && rconn_is_connected(ofconn->rconn)) { if (prev) { queue_tx(ofpbuf_clone(buf), prev); } else { -- 2.30.2