rconn: Only increment seqno when connection actually drops or reconnects.
authorBen Pfaff <blp@nicira.com>
Thu, 30 Apr 2015 06:48:58 +0000 (23:48 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 6 May 2015 00:21:05 +0000 (17:21 -0700)
commit8f2bc8d73806d2ea767ee8cbe86b6ee6862f5634
tree2488472cccb12b48e67219810e59a6713bee30a3
parent678729a2ce532aec98e7837315f88125977d569d
rconn: Only increment seqno when connection actually drops or reconnects.

rconn_get_connection_seqno() is documented to change only when an rconn
connects or disconnnects, but in fact it was also changing whenever an
rconn went into or out of the "idle" state (following sending an echo
request).  This fixes the problem.

rconn_get_connection_seqno() didn't have any existing users, but an
upcoming commit adds one.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
lib/rconn.c