Temporary disable SPDCACHE statistic accounting until proper fix will be

committed. This fixes the kernel build without option IPSEC.
This commit is contained in:
Andrey V. Elsukov 2018-05-28 09:23:28 +00:00
parent b00ab7548b
commit 33c1b2bd88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334278

View File

@ -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);