From: Ben Pfaff Date: Mon, 9 Mar 2009 20:50:16 +0000 (-0700) Subject: secchan: Optimize flow expiration when not connected. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcff934e6598ed6c6462871ff70e97c41516c6e7;p=openvswitch 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. --- 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 {