summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2016-10-28 09:04:04 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2016-10-28 09:04:04 +0000
commita8d24d8261215ca4ca549c2383aa0e558994da6d (patch)
tree62585e35e8ae137dd10d1ac85a610b5ce1108db3 /sys/net
parent54b26813c5969406e5eef70c44448aaf62c3498c (diff)
Remove unused function, the code is already inlined in action_output
function. ok reyk@
Diffstat (limited to 'sys/net')
-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)
{