X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Felog.h;h=322c2c63ae7215904edbb7ba091cd0e6c750eb89;hb=de847277c9879c014fb4557e884360a4e6492783;hp=d50c9a6500da8b86054fc8b7f12e4c8fc3995a73;hpb=59b2565cd91a67ced650739f36129650830211ac;p=vpp.git diff --git a/src/vppinfra/elog.h b/src/vppinfra/elog.h index d50c9a6500d..322c2c63ae7 100644 --- a/src/vppinfra/elog.h +++ b/src/vppinfra/elog.h @@ -313,7 +313,7 @@ elog_event_data_inline (elog_main_t * em, ASSERT (is_pow2 (vec_len (em->event_ring))); if (em->lock) - ei = clib_smp_atomic_add (&em->n_total_events, 1); + ei = clib_atomic_fetch_add (&em->n_total_events, 1); else ei = em->n_total_events++;