ip_mroute: allow MRT_DEL_MFC even if there are pending upcalls
authorKristof Provost <kp@FreeBSD.org>
Tue, 12 Dec 2023 18:17:40 +0000 (19:17 +0100)
committerKristof Provost <kp@FreeBSD.org>
Thu, 14 Dec 2023 21:04:43 +0000 (22:04 +0100)
commit0bc82e4fbbe9d1eb72b6be512ff92a4908f85fef
treebce232d8dc6748340bc042bab7f2118cc09de755
parent2a622f14e8a588de654847ae264cdc3616528c9d
ip_mroute: allow MRT_DEL_MFC even if there are pending upcalls

In del_mfc() we try to find the forwarding entry, but that fails to find
the entry if mfc_stall_ring is not empty.

We should find the entry anyway, and destroy it (and any pending
messages) on delete.

Reviewed by: glebius
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43031
sys/netinet/ip_mroute.c