rconn: Add byte counting feature to rconn_packet_counter.
[openvswitch] / ofproto / connmgr.c
index 18b80b8787c68ca706a095502cc0c456cc0c4cc6..3e750d24cc446eaf8bc355db08a726b37eebcacf 100644 (file)
@@ -1128,7 +1128,7 @@ ofconn_reconfigure(struct ofconn *ofconn, const struct ofproto_controller *c)
 static bool
 ofconn_may_recv(const struct ofconn *ofconn)
 {
-    int count = rconn_packet_counter_read (ofconn->reply_counter);
+    int count = ofconn->reply_counter->n_packets;
     return (!ofconn->blocked || ofconn->retry) && count < OFCONN_REPLY_MAX;
 }