Module Name: src
Committed By: christos
Date: Sun Apr 3 15:52:37 UTC 2016
Modified Files:
src/sys/external/bsd/ipf/netinet: fil.c
Log Message:
Comment out the mutex calls that protect against concurrent configuration
changes and processing. This needs to be done differently since you can't
sleep during interrupt processing.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 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.16 src/sys/external/bsd/ipf/netinet/fil.c:1.17
--- src/sys/external/bsd/ipf/netinet/fil.c:1.16 Wed Apr 1 20:12:58 2015
+++ src/sys/external/bsd/ipf/netinet/fil.c Sun Apr 3 11:52:37 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: fil.c,v 1.16 2015/04/02 00:12:58 khorben Exp $ */
+/* $NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 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.16 2015/04/02 00:12:58 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 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,7 +2916,9 @@ 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)
@@ -3048,9 +3050,10 @@ filterdone:
fr->fr_ref++;
MUTEX_EXIT(&fr->fr_lock);
}
-
+#if 0
RWLOCK_EXIT(&softc->ipf_mutex);
#endif
+#endif
if ((pass & FR_RETMASK) != 0) {
/*
@@ -3146,8 +3149,10 @@ filterdone:
#endif
}
#if !defined(FASTROUTE_RECURSION)
+#if 0
RWLOCK_EXIT(&softc->ipf_mutex);
#endif
+#endif
finished:
if (!FR_ISPASS(pass)) {