Revert "pf: Allow disappearing or not yet existing interfaces for ALTQ"
authorAaron LI <aly@aaronly.me>
Thu, 9 Aug 2018 02:40:36 +0000 (10:40 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 9 Aug 2018 02:40:36 +0000 (10:40 +0800)
commitd15093b968014ef49e9a6d18ef3d97557410473e
tree80a25fee0406dcd6418e626f82b30a3fb063ceef
parentacc24b690ed6d89cb2611bb8ee46800d01acaa84
Revert "pf: Allow disappearing or not yet existing interfaces for ALTQ"

This reverts commit 0a887f91f9633448c99b9a5b7c6116a0a22d25d6.

1. It's incorrect to change the ifnet_unlock().  The original protection
   range is used to make sure that the ifp does not get ripped out behind
   our back.

2. We don't suffer from the issue that that commit was intended to fix.

Thanks-to: sephe
sys/net/pf/pf_if.c
sys/net/pf/pf_ioctl.c
sys/net/pf/pfvar.h
usr.sbin/pfctl/pfctl_altq.c
usr.sbin/pfctl/pfctl_qstats.c