bihash: give hint to CPU that we are spinlocking
[vpp.git] / src / vppinfra / bihash_template.c
index af624fe..8a6fa16 100644 (file)
@@ -508,7 +508,7 @@ int BV (clib_bihash_search)
     {
       volatile BVT (clib_bihash_bucket) * bv = b;
       while (bv->lock)
-       ;
+       CLIB_PAUSE ();
     }
 
   hash >>= h->log2_nbuckets;