projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rconn: Add byte counting feature to rconn_packet_counter.
[openvswitch]
/
ofproto
/
connmgr.c
diff --git
a/ofproto/connmgr.c
b/ofproto/connmgr.c
index 18b80b8787c68ca706a095502cc0c456cc0c4cc6..3e750d24cc446eaf8bc355db08a726b37eebcacf 100644
(file)
--- 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;
}