From e5799b1123ccc604d6353c622b08d0a4740e9633 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Fri, 6 Apr 2018 10:59:12 +0000 Subject: Use the existing pf state to speed up UDP socket lookup. This was disabled as there were some stability issues. It seems that the crashes were fixed when reference counting for pf states was implemented. Se reenable this code. Apart from the performance improvement it also makes corner cases for pf divert-to more reliable. OK henning@ --- sys/netinet/udp_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet') diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 57a35faf9e1..001a41a0810 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.245 2017/12/01 10:33:33 bluhm Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.246 2018/04/06 10:59:11 bluhm Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -513,7 +513,7 @@ udp_input(struct mbuf **mp, int *offp, int proto, int af) /* * Locate pcb for datagram. */ -#if NPF > 0 && 0 /* currently disabled */ +#if NPF > 0 inp = pf_inp_lookup(m); #endif if (inp == NULL) { -- cgit v1.2.3