From 33c1b2bd88722a02e70da59459f5e5f08baec4cd Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Mon, 28 May 2018 09:23:28 +0000 Subject: [PATCH] Temporary disable SPDCACHE statistic accounting until proper fix will be committed. This fixes the kernel build without option IPSEC. --- sys/netipsec/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 418bf3bc4bce..96ef209518d1 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -930,13 +930,13 @@ key_allocsp(struct secpolicyindex *spidx, u_int dir) if (entry->sp != NULL) SP_ADDREF(sp); - IPSECSTAT_INC(ips_spdcache_hits); + /* IPSECSTAT_INC(ips_spdcache_hits); */ SPDCACHE_UNLOCK(hashv); goto out; } - IPSECSTAT_INC(ips_spdcache_misses); + /* IPSECSTAT_INC(ips_spdcache_misses); */ sp = key_do_allocsp(spidx, dir); entry = spdcache_entry_alloc(spidx, sp);