diff options
author | ae <ae@FreeBSD.org> | 2017-04-17 09:34:09 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2017-04-17 09:34:09 +0000 |
commit | 9a21c53ccadbd5db7c683c6b68fb0d8c63b02c5f (patch) | |
tree | 367001974303f72c68d014b2f6c291af320f7a10 /sys/netpfil/ipfw/ip_fw_nat.c | |
parent | e9a6f7e541bfe67d22684aa658e571a18deaa587 (diff) | |
download | FreeBSD-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_nat.c')
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c index cb816f7..6fa74cd 100644 --- a/sys/netpfil/ipfw/ip_fw_nat.c +++ b/sys/netpfil/ipfw/ip_fw_nat.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> #include <net/if_var.h> +#include <net/pfil.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip_var.h> |