HomeFreeBSD

pf: fix pfi_ifnet leak on interface removal

Description

pf: fix pfi_ifnet leak on interface removal

The detach of the interface and group were leaving pfi_ifnet memory
behind. Check if the kif still has references, and clean it up if it
doesn't

On interface detach, the group deletion was notified first and then a
change notification was sent. This would recreate the group in the kif
layer. Reorder the change to before the delete.

PR: 257218
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D37569

Details

Provenance
Nick Reilly <nreilly@blackberry.com>Authored on Nov 30 2022, 2:19 PM
kpCommitted on Dec 14 2022, 9:19 AM
Differential Revision
D37569: pf: fix pfi_ifnet leak on interface removal
Parents
rGe6fc01f6be36: tcp: whack the stale declaration of rack_timer_stop
Branches
Unknown
Tags
Unknown