Module Name:    src
Committed By:   christos
Date:           Mon Apr  4 00:44:07 UTC 2016

Modified Files:
        src/sys/external/bsd/ipf/netinet: fil.c

Log Message:
We don't need this in /current because packet processing does not happen in
an interrupt anymore (pointed out by ozaki@)


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/external/bsd/ipf/netinet/fil.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/ipf/netinet/fil.c
diff -u src/sys/external/bsd/ipf/netinet/fil.c:1.17 src/sys/external/bsd/ipf/netinet/fil.c:1.18
--- src/sys/external/bsd/ipf/netinet/fil.c:1.17	Sun Apr  3 11:52:37 2016
+++ src/sys/external/bsd/ipf/netinet/fil.c	Sun Apr  3 20:44:06 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 christos Exp $	*/
+/*	$NetBSD: fil.c,v 1.18 2016/04/04 00:44:06 christos Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@ extern struct timeout ipf_slowtimer_ch;
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.18 2016/04/04 00:44:06 christos Exp $");
 #else
 static const char sccsid[] = "@(#)fil.c	1.36 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@@ -2916,9 +2916,7 @@ ipf_check(void *ctx, ip_t *ip, int hlen,
 		LBUMPD(ipf_stats[out], fr_short);
 	}
 
-#if 0
 	READ_ENTER(&softc->ipf_mutex);
-#endif
 
 	if (!out) {
 		switch (fin->fin_v)
@@ -3050,10 +3048,9 @@ filterdone:
 		fr->fr_ref++;
 		MUTEX_EXIT(&fr->fr_lock);
 	}
-#if 0
+
 	RWLOCK_EXIT(&softc->ipf_mutex);
 #endif
-#endif
 
 	if ((pass & FR_RETMASK) != 0) {
 		/*
@@ -3149,10 +3146,8 @@ filterdone:
 #endif
 	}
 #if !defined(FASTROUTE_RECURSION)
-#if 0
 	RWLOCK_EXIT(&softc->ipf_mutex);
 #endif
-#endif
 
 finished:
 	if (!FR_ISPASS(pass)) {

Reply via email to