summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip6-nd/rd_cp.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-02-04 16:10:17 -0500
committerDamjan Marion <dmarion@me.com>2020-02-05 09:20:48 +0000
commit51cabf2a1486e8b4aa6756184d6e2ba0efc78b8a (patch)
tree20a8a0e24f84121a4e24e46a0a727e08e1caa5c4 /src/vnet/ip6-nd/rd_cp.h
parenta80f8f371733a73a0fa8351a66bd1e519f1b90cd (diff)
vppinfra: deal with 0 return from os_cpu_clock_frequency()
Sporadic reports of os_cpu_clock_frequency() returning 0.0 in highly parallel container environments. To avoid immediate division by zero: Step 1: try estimate_clock_frequency(1e-3). Step 2: give up. Pretend we have a 2gHz clock. Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I19d0fe5259b757ab778599c7026ce485153b43fa
Diffstat (limited to 'src/vnet/ip6-nd/rd_cp.h')
0 files changed, 0 insertions, 0 deletions