summaryrefslogtreecommitdiffstats
path: root/src/scripts/vnet/mpls-o-ethernet/pg
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-02-19 17:05:30 -0500
committerDamjan Marion <dmarion@me.com>2019-02-20 16:27:47 +0000
commita4324a996f34902579338033110d27575a654c8e (patch)
treecdc4a58a8d055053cf8ef90b5ddf7d0fcd1a5af2 /src/scripts/vnet/mpls-o-ethernet/pg
parent51a423dc2b0d4aad0bbd8f7e757d2ca49221ff83 (diff)
calculate per-thread time offset
The main thread squirrels away vlib_time_now (&vlib_global_main), worker threads use it to calculate an offset in f64 seconds from their own vlib_time_now(vm) value. We use that offset until the next barrier sync. Thanks to Damjan for the suggestion. Change-Id: If56cdfe68e5ad8ac3b0d0fc885dc3ba556cd1215 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/scripts/vnet/mpls-o-ethernet/pg')
0 files changed, 0 insertions, 0 deletions