bfd: Notify connectivity_seq on rmt_state changes.
authorJoe Stringer <joestringer@nicira.com>
Wed, 25 Dec 2013 00:50:53 +0000 (16:50 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 26 Dec 2013 18:16:42 +0000 (10:16 -0800)
commitb79b0811351b181f94b3f815aa267a5385868fdc
tree1d17497326cbbaa674d4e2a31593ca86e072ca53
parentf0e047db8c208d85f97d2674bd2e6b2b30342c09
bfd: Notify connectivity_seq on rmt_state changes.

The bfd module did not previously change the global connectivity_seq
when the remote state changed, which means that such state changes may
not be propagated to the database. This is particularly bad if this is
the last state transition to happen in an otherwise stable environment.
This patch checks for transitions in remote state, and ensures that the
main thread will update the database when these happen.

Bug #22136.

Co-authored-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/bfd.c