X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=ofproto%2Fconnmgr.c;h=3e750d24cc446eaf8bc355db08a726b37eebcacf;hb=a644168568471eb33f8d1e60e872859f4e5bbc69;hp=18b80b8787c68ca706a095502cc0c456cc0c4cc6;hpb=1d31ece9c09ecd31ed524f0f83573e8780774abb;p=openvswitch diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 18b80b87..3e750d24 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -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; }