Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Get rid of unnecessary xc_broadcast after pktq_barrier
details: https://anonhg.NetBSD.org/src/rev/1e9ce714b366
branches: trunk
changeset: 796871:1e9ce714b366
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Jun 23 06:27:58 2014 +0000
description:
Get rid of unnecessary xc_broadcast after pktq_barrier
Pointed out by rmind@
diffstat:
sys/net/if_bridge.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 8d89bf0f52ab -r 1e9ce714b366 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Mon Jun 23 03:40:57 2014 +0000
+++ b/sys/net/if_bridge.c Mon Jun 23 06:27:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.83 2014/06/18 10:51:03 ozaki-r Exp $ */
+/* $NetBSD: if_bridge.c,v 1.84 2014/06/23 06:27:58 ozaki-r Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.83 2014/06/18 10:51:03 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.84 2014/06/23 06:27:58 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -100,7 +100,6 @@
#include <sys/kauth.h>
#include <sys/cpu.h>
#include <sys/cprng.h>
-#include <sys/xcall.h>
#include <net/bpf.h>
#include <net/if.h>
@@ -406,12 +405,9 @@
struct bridge_softc *sc = ifp->if_softc;
struct bridge_iflist *bif;
int s;
- uint64_t xc;
/* Must be called during IFF_RUNNING, i.e., before bridge_stop */
pktq_barrier(sc->sc_fwd_pktq);
- xc = xc_broadcast(0, (xcfunc_t)nullop, NULL, NULL);
- xc_wait(xc);
s = splnet();
Home |
Main Index |
Thread Index |
Old Index