aboutsummaryrefslogtreecommitdiff
path: root/sys/net/route
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2023-05-17 08:24:05 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2023-05-17 08:40:29 +0000
commit4c63ecf5c77cdd023282c2ab585d139aa0408d42 (patch)
treebe9ded95d55d3f1805658449e5a0b1cba2d2cbcf /sys/net/route
parent848d5bb1abea7e1fb936a191f2500900624a0da4 (diff)
Diffstat (limited to 'sys/net/route')
-rw-r--r--sys/net/route/nhgrp_ctl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/route/nhgrp_ctl.c b/sys/net/route/nhgrp_ctl.c
index 2e9bcd4dc86f..ce5b154859f6 100644
--- a/sys/net/route/nhgrp_ctl.c
+++ b/sys/net/route/nhgrp_ctl.c
@@ -382,10 +382,11 @@ nhgrp_free(struct nhgrp_object *nhg)
NET_EPOCH_EXIT(et);
return;
}
+ MPASS((nhg_priv->nhg_idx == 0));
+ MPASS((nhg_priv->nhg_refcount == 0));
}
NET_EPOCH_EXIT(et);
- KASSERT((nhg_priv->nhg_idx == 0), ("gr_idx != 0"));
NET_EPOCH_CALL(destroy_nhgrp_epoch, &nhg_priv->nhg_epoch_ctx);
}
@@ -402,10 +403,6 @@ destroy_nhgrp_int(struct nhgrp_priv *nhg_priv)
__noinline static void
destroy_nhgrp(struct nhgrp_priv *nhg_priv)
{
-
- KASSERT((nhg_priv->nhg_refcount == 0), ("nhg_refcount != 0"));
- KASSERT((nhg_priv->nhg_idx == 0), ("gr_idx != 0"));
-
IF_DEBUG_LEVEL(LOG_DEBUG2) {
char nhgbuf[NHOP_PRINT_BUFSIZE] __unused;
FIB_NH_LOG(LOG_DEBUG2, nhg_priv->nhg_nh_weights[0].nh,