forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bfd: Require bfd control packet received in forwarding_if_rx mode.
This commit adds a requirement that bfd session must receive at least one bfd control packet every 100 * bfd->cfg_min_rx amount of time in forwarding_if_rx mode. Otherwise, even if the data packets are received on the monitored interface, the bfd->forwarding is still false. Since the datapath flow is not purged when the userspace Open Vswitch crashes, data packet can still be forwarded through the tunnel and fool the remote BFD session in forwarding_if_rx mode. Thus, this commit can prevent the remote BFD session from falsely declaring tunnel liveness in this situation. Signed-off-by: Alex Wang <[email protected]> Acked-by: Ethan Jackson <[email protected]>
- Loading branch information
Showing
3 changed files
with
105 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters