summaryrefslogtreecommitdiffstats
path: root/sys/netpfil/ipfw/ip_fw_dynamic.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2017-04-17 09:34:09 +0000
committerae <ae@FreeBSD.org>2017-04-17 09:34:09 +0000
commit9a21c53ccadbd5db7c683c6b68fb0d8c63b02c5f (patch)
tree367001974303f72c68d014b2f6c291af320f7a10 /sys/netpfil/ipfw/ip_fw_dynamic.c
parente9a6f7e541bfe67d22684aa658e571a18deaa587 (diff)
downloadFreeBSD-src-9a21c53ccadbd5db7c683c6b68fb0d8c63b02c5f.zip
FreeBSD-src-9a21c53ccadbd5db7c683c6b68fb0d8c63b02c5f.tar.gz
MFC r316461:
Remove "IPFW static rules" rmlock. Make PFIL's lock global and use it for this purpose. This reduces the number of locks needed to acquire for each packet. Obtained from: Yandex LLC Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D10154
Diffstat (limited to 'sys/netpfil/ipfw/ip_fw_dynamic.c')
-rw-r--r--sys/netpfil/ipfw/ip_fw_dynamic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 95b3a72..77c98c7 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
#include <net/ethernet.h> /* for ETHERTYPE_IP */
#include <net/if.h>
#include <net/if_var.h>
+#include <net/pfil.h>
#include <net/vnet.h>
#include <netinet/in.h>
OpenPOWER on IntegriCloud