summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorKenjiro Cho <kjc@cvs.openbsd.org>2003-01-07 09:00:35 +0000
committerKenjiro Cho <kjc@cvs.openbsd.org>2003-01-07 09:00:35 +0000
commit90c5fb9bb11ea1c011e1f4ec515a88050712e329 (patch)
tree1714800df3407f7f18e59f48905f9303c52a5139 /sys/net/if_vlan.c
parentc867b6d1d4578e50d73dddd2c3fb47bfae7e1475 (diff)
remove the altq classifier code which is replaced by pf and no longer used.
ok henning@, deraadt@
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index d2c873ea8f5..2d14112c4ff 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.32 2002/06/12 01:42:29 chris Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.33 2003/01/07 09:00:34 kjc Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -137,7 +137,6 @@ vlan_start(struct ifnet *ifp)
struct ifnet *p;
struct mbuf *m, *m0;
int error;
- ALTQ_DECL(struct altq_pktattr pktattr;)
ifv = ifp->if_softc;
p = ifv->ifv_p;
@@ -158,26 +157,6 @@ vlan_start(struct ifnet *ifp)
continue;
}
-#ifdef ALTQ
- /*
- * If ALTQ is enabled on the parent interface, do
- * classification; the queueing discipline might
- * not require classification, but might require
- * the address family/header pointer in the pktattr.
- */
- if (ALTQ_IS_ENABLED(&p->if_snd)) {
- switch (p->if_type) {
- case IFT_ETHER:
- altq_etherclassify(&p->if_snd, m, &pktattr);
- break;
-#ifdef DIAGNOSTIC
- default:
- panic("vlan_start: impossible (altq)");
-#endif
- }
- }
-#endif /* ALTQ */
-
#if NBPFILTER > 0
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
@@ -239,7 +218,7 @@ vlan_start(struct ifnet *ifp)
p->if_obytes += m->m_pkthdr.len;
if (m->m_flags & M_MCAST)
p->if_omcasts++;
- IFQ_ENQUEUE(&p->if_snd, m, &pktattr, error);
+ IFQ_ENQUEUE(&p->if_snd, m, NULL, error);
if (error) {
/* mbuf is already freed */
ifp->if_oerrors++;