summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrzalamena <rzalamena@openbsd.org>2016-10-28 09:04:03 +0000
committerrzalamena <rzalamena@openbsd.org>2016-10-28 09:04:03 +0000
commit128039fb600391ff264430bf51edbccb47d2f07b (patch)
tree83d42db4947302a28440f7af265389dcd9492bc0
parentWhen doing pktout we must run the classifier again, because some action(s) (diff)
downloadwireguard-openbsd-128039fb600391ff264430bf51edbccb47d2f07b.tar.xz
wireguard-openbsd-128039fb600391ff264430bf51edbccb47d2f07b.zip
Remove unused function, the code is already inlined in action_output
function. ok reyk@
-rw-r--r--sys/net/if_switch.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/net/if_switch.c b/sys/net/if_switch.c
index 9d8562ce6b9..28f1f156e09 100644
--- a/sys/net/if_switch.c
+++ b/sys/net/if_switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_switch.c,v 1.10 2016/10/28 09:01:49 rzalamena Exp $ */
+/* $OpenBSD: if_switch.c,v 1.11 2016/10/28 09:04:03 rzalamena Exp $ */
/*
* Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
@@ -85,8 +85,6 @@ int switch_stop(struct ifnet *, int);
struct mbuf
*switch_port_ingress(struct switch_softc *, struct ifnet *,
struct mbuf *);
-void switch_forward_flooder(struct switch_softc *,
- struct switch_flow_classify *, struct mbuf *);
void switch_port_egress(struct switch_softc *, struct switch_fwdp_queue *,
struct mbuf *);
int switch_ifenqueue(struct switch_softc *, struct ifnet *,
@@ -725,25 +723,6 @@ switch_port_ingress(struct switch_softc *sc, struct ifnet *src_if,
}
void
-switch_forward_flooder(struct switch_softc *sc,
- struct switch_flow_classify *swfcl, struct mbuf *m)
-{
- struct switch_port *swpo;
- struct switch_fwdp_queue fwdp_q;
- uint32_t src_port_no;
-
- src_port_no = swfcl->swfcl_in_port;
- TAILQ_INIT(&fwdp_q);
- TAILQ_FOREACH(swpo, &sc->sc_swpo_list, swpo_list_next) {
- if (swpo->swpo_port_no == src_port_no)
- continue;
- TAILQ_INSERT_HEAD(&fwdp_q, swpo, swpo_fwdp_next);
- }
-
- switch_port_egress(sc, &fwdp_q, m);
-}
-
-void
switch_port_egress(struct switch_softc *sc, struct switch_fwdp_queue *fwdp_q,
struct mbuf *m)
{