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:10:16 +0000 (10:10 -0800)
commit9c6c453eb7f5c4341f0b73aa2900517e23ec5518
tree46783d94e72a55a46165bbfc956c56524e0e502c
parent04b541dfe5c2b9027f365204b727133c9c574989
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