Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/ipf/netinet We don't need this in /current ...
details: https://anonhg.NetBSD.org/src/rev/ab72417d5759
branches: trunk
changeset: 344541:ab72417d5759
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 04 00:44:06 2016 +0000
description:
We don't need this in /current because packet processing does not happen in
an interrupt anymore (pointed out by ozaki@)
diffstat:
sys/external/bsd/ipf/netinet/fil.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (51 lines):
diff -r 6c36b5ec1c42 -r ab72417d5759 sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c Sun Apr 03 23:50:49 2016 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c Mon Apr 04 00:44:06 2016 +0000
@@ -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 @@
#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 @@
LBUMPD(ipf_stats[out], fr_short);
}
-#if 0
READ_ENTER(&softc->ipf_mutex);
-#endif
if (!out) {
switch (fin->fin_v)
@@ -3050,10 +3048,9 @@
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 @@
#endif
}
#if !defined(FASTROUTE_RECURSION)
-#if 0
RWLOCK_EXIT(&softc->ipf_mutex);
#endif
-#endif
finished:
if (!FR_ISPASS(pass)) {
Home |
Main Index |
Thread Index |
Old Index