aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dns/dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dns/dns.h')
-rw-r--r--src/vnet/dns/dns.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/dns/dns.h b/src/vnet/dns/dns.h
index b2e3e9b90cb..19de69cc248 100644
--- a/src/vnet/dns/dns.h
+++ b/src/vnet/dns/dns.h
@@ -23,6 +23,7 @@
#include <vppinfra/hash.h>
#include <vnet/dns/dns_packet.h>
#include <vnet/ip/ip.h>
+#include <vppinfra/lock.h>
typedef struct
{
@@ -196,7 +197,7 @@ dns_cache_lock (dns_main_t * dm)
if (dm->cache_lock)
{
while (clib_atomic_test_and_set (dm->cache_lock))
- ;
+ CLIB_PAUSE ();
}
}