d2568b024d
r343287 / D18759 introduced ifa_add_groups_to_map() which is now run by ifa_load/ifa_lookup/host_if. When loading an anchor or ruleset via pfctl that does NOT contain ifnames as hosts, host() still ends up iterating all interfaces twice, grabbing SIOCGIFGROUP ioctl twice for each. This adds an unnecessary amount of time on systems with thousands or tens of thousands of interfaces. Prioritize the IPv4/6 check over the interface name lookup, which skips loading the iftab and iterating all interfaces when the configuration does not contain interface names. Submitted by: Nick Rogers MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24100 |
||
---|---|---|
.. | ||
tests | ||
Makefile | ||
Makefile.depend | ||
parse.y | ||
pf_print_state.c | ||
pf.os | ||
pfctl_altq.c | ||
pfctl_optimize.c | ||
pfctl_osfp.c | ||
pfctl_parser.c | ||
pfctl_parser.h | ||
pfctl_qstats.c | ||
pfctl_radix.c | ||
pfctl_table.c | ||
pfctl.8 | ||
pfctl.c | ||
pfctl.h |