diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-03-25 14:26:53 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-03-28 11:32:06 -0700 |
| commit | 72c3b44800c5b25d5399b05e1bc6aece44414f49 (patch) | |
| tree | d433b9f299e1adb7c911e291f4b7d2be9d450864 /lib/cfm.c | |
| parent | 1c2e2d2fc87c9435b6fe33112b0ddaab59f507c5 (diff) | |
| download | openvswitch-72c3b44800c5b25d5399b05e1bc6aece44414f49.tar.gz | |
cfm: Reduce missed CCM detection time.
The specification says that a fault should be signaled when 3.5 *
ccm_interval milliseconds have passed. This commit respects that
requirement, possibly increasing the responsiveness of fault
detection slightly.
Diffstat (limited to 'lib/cfm.c')
| -rw-r--r-- | lib/cfm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -192,9 +192,8 @@ cfm_run(struct cfm *cfm) * MPs at once making this quite a bit simpler. * * According to the specification we should check when (ccm_interval_ms * - * 3.5)ms have passed. We changed the multiplier to 4 to avoid messy - * floating point arithmetic and add a bit of wiggle room. */ - if (now >= cfmi->fault_check + cfmi->ccm_interval_ms * 4) { + * 3.5)ms have passed. */ + if (now >= cfmi->fault_check + (cfmi->ccm_interval_ms * 7) / 2) { bool fault; struct remote_mp *rmp, *rmp_next; struct remote_maid *rmaid, *rmaid_next; |
