summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-11-09 21:29:28 +0000
committermlaier <mlaier@FreeBSD.org>2004-11-09 21:29:28 +0000
commitb188666781eb6b720e2adf60f48518a8cc9fd34c (patch)
treecb198a919eea9d98a2fd0be13eef442b1f20090c /sys/net
parent3e514b9f37d46a41b8b0d4d8a2a89507aa69c803 (diff)
downloadFreeBSD-src-b188666781eb6b720e2adf60f48518a8cc9fd34c.zip
FreeBSD-src-b188666781eb6b720e2adf60f48518a8cc9fd34c.tar.gz
Remove the #if 0 wrapping around !ALTQ stuff that can't be used due to ABI
stability anyway.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_var.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 0541126..f3517c6 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -83,9 +83,7 @@ struct ether_header;
#define IF_DUNIT_NONE -1
-#if 1 /* ALTQ */
#include <altq/if_altq.h>
-#endif
TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */
TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
@@ -182,11 +180,7 @@ struct ifnet {
void *if_spare3; /* spare pointer 3 */
u_int if_spare_flags1; /* spare flags 1 */
u_int if_spare_flags2; /* spare flags 2 */
-#if 1 /* ALTQ */
struct ifaltq if_snd; /* output queue (includes altq) */
-#else
- struct ifqueue if_snd; /* output queue */
-#endif
const u_int8_t *if_broadcastaddr; /* linklevel broadcast bytestring */
struct lltable *lltables; /* list of L3-L2 resolution tables */
@@ -351,7 +345,6 @@ int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
void if_start(struct ifnet *);
-#if 1 /* ALTQ */
#define IFQ_ENQUEUE(ifq, m, err) \
do { \
IF_LOCK(ifq); \
@@ -423,33 +416,6 @@ do { \
#define IFQ_SET_READY(ifq) \
do { ((ifq)->altq_flags |= ALTQF_READY); } while (0)
-#else /* !ALTQ */
-#define IFQ_ENQUEUE(ifq, m, err) \
-do { \
- IF_LOCK(ifq); \
- if (_IF_QFULL(ifq)) { \
- m_freem(m); \
- (err) = ENOBUFS; \
- } else { \
- _IF_ENQUEUE(ifq, m); \
- (err) = 0; \
- } \
- if (err) \
- (ifq)->ifq_drops++; \
- IF_UNLOCK(ifq); \
-} while (0)
-
-#define IFQ_DEQUEUE_NOLOCK(ifq, m) _IF_DEQUEUE(ifq, m)
-#define IFQ_DEQUEUE(ifq, m) IF_DEQUEUE(ifq, m)
-#define IFQ_POLL_NOLOCK(ifq, m) _IF_POLL(ifq, m)
-#define IFQ_POLL(ifq, m) IF_POLL(ifq, m)
-#define IFQ_PURGE_NOLOCK(ifq) _IF_DRAIN(ifq)
-#define IFQ_PURGE(ifq) IF_DRAIN(ifq)
-
-#define IFQ_SET_READY(ifq) /* nothing */
-
-#endif /* !ALTQ */
-
#define IFQ_LOCK(ifq) IF_LOCK(ifq)
#define IFQ_UNLOCK(ifq) IF_UNLOCK(ifq)
#define IFQ_LOCK_ASSERT(ifq) IF_LOCK_ASSERT(ifq)
OpenPOWER on IntegriCloud