Andrey V. Elsukov 221022e190 Add the check that current VNET is ready and access to srchash is
allowed.

ipsec_srcaddr() callback can be called during VNET teardown, since
ingress address checking subsystem isn't VNET specific. And thus
callback can make access to already freed memory. To prevent this,
use V_ipsec_idhtbl pointer as indicator of VNET readiness. And make
epoch_wait() after resetting it to NULL in vnet_ipsec_uninit() to
be sure that ipsec_srcaddr() is finished its work.

Reported by:	kp
MFC after:	20 days
2018-10-23 13:03:03 +00:00
..
2018-10-22 02:36:07 +00:00
2018-10-22 18:29:12 +00:00
2018-10-20 20:45:49 +00:00
2018-10-05 17:53:47 +00:00
2018-08-23 13:21:01 +00:00
2018-10-22 02:36:18 +00:00
2018-10-20 22:39:35 +00:00
2018-10-22 02:36:18 +00:00
2018-09-22 17:05:49 +00:00