From: Alex Wang Date: Wed, 9 Apr 2014 17:58:54 +0000 (-0700) Subject: cfm: Require ccm received in demand mode. X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~24 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5767a79a40599e5e6e70662833b27ffdbdab7e37;hp=5767a79a40599e5e6e70662833b27ffdbdab7e37;p=sliver-openvswitch.git cfm: Require ccm received in demand mode. This commit adds a new requirement that cfm session must receive at least one ccm every 100 * cfm_interval amount of time in demand mode. Otherwise, even if the data packets are received on the monitored interface, the cfm session still reports "[recv]" fault. 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 CFM session in demand mode. Thus, this commit can prevent the remote CFM session from falsely declaring tunnel liveness in this situation. Signed-off-by: Alex Wang Acked-by: Ethan Jackson ---