summaryrefslogtreecommitdiff
path: root/sys/net/if_switch.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2016-11-11 16:19:10 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2016-11-11 16:19:10 +0000
commit73e221c2229cb93cf087cb8828401c9528036943 (patch)
treefb3ff386265e2b307a2a78003168ca0b559373f7 /sys/net/if_switch.h
parenta2dc981dc878445b11cfd39dccf91bb0a8c1500c (diff)
Remove mutexes protection from the switchctl as they don't seem to be
doing anything for us, and remove some whitespaces from the header that can be found near the removed lines. ok mikeb@
Diffstat (limited to 'sys/net/if_switch.h')
-rw-r--r--sys/net/if_switch.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net/if_switch.h b/sys/net/if_switch.h
index da2115476ef..586b8e02f2d 100644
--- a/sys/net/if_switch.h
+++ b/sys/net/if_switch.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_switch.h,v 1.7 2016/11/10 17:32:40 rzalamena Exp $ */
+/* $OpenBSD: if_switch.h,v 1.8 2016/11/11 16:19:09 rzalamena Exp $ */
/*
* Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
@@ -185,9 +185,7 @@ struct switch_dev {
struct mbuf *swdev_inputm;
struct mbuf_queue swdev_outq;
struct selinfo swdev_rsel;
- struct mutex swdev_rsel_mtx;
struct selinfo swdev_wsel;
- struct mutex swdev_wsel_mtx;
int swdev_waiting;
void (*swdev_init)(struct switch_softc *);
int (*swdev_input)(struct switch_softc *,
@@ -203,8 +201,8 @@ struct switch_softc {
struct switch_dev *sc_swdev; /* char device */
struct bstp_state *sc_stp; /* STP state */
struct swofp_ofs *sc_ofs; /* OpenFlow */
- TAILQ_HEAD(,switch_port) sc_swpo_list; /* port */
- LIST_ENTRY(switch_softc) sc_switch_next; /* switch link */
+ TAILQ_HEAD(,switch_port) sc_swpo_list; /* port */
+ LIST_ENTRY(switch_softc) sc_switch_next; /* switch link */
void (*switch_process_forward)(
struct switch_softc *, struct switch_flow_classify *,
struct mbuf *);