X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vpp%2Fstats%2Fstats.c;h=c46e2d5a44ec26f84e742a80b52d3fefe671f540;hb=7e3a875c94b180ef4d9dc99a7fcc8a73c348969b;hp=ee9a6a6d919f2538f1f4e8543f8e1cb4826e2b0d;hpb=0bfe5d8c792abcdbcf27bfcc7b7b353fba04aee2;p=vpp.git diff --git a/vpp/stats/stats.c b/vpp/stats/stats.c index ee9a6a6d919..c46e2d5a44e 100644 --- a/vpp/stats/stats.c +++ b/vpp/stats/stats.c @@ -87,6 +87,13 @@ dslock (stats_main_t * sm, int release_hint, int tag) l->count = 1; } +void +stats_dslock_with_hint (int hint, int tag) +{ + stats_main_t *sm = &stats_main; + dslock (sm, hint, tag); +} + void dsunlock (stats_main_t * sm) { @@ -108,6 +115,13 @@ dsunlock (stats_main_t * sm) } } +void +stats_dsunlock (int hint, int tag) +{ + stats_main_t *sm = &stats_main; + dsunlock (sm); +} + static void do_simple_interface_counters (stats_main_t * sm) {