aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-03-01 23:01:47 +0000
committerWarner Losh <imp@FreeBSD.org>2020-03-01 23:01:47 +0000
commit51447e4962fa9fd93747da198e46e6221015c91d (patch)
treed54ca229bb21be6b7a428f8c3ab19f6f3f5568c1 /sys/cam/ctl
parent18347b2e1e1a5d71b2ee2d8250443b24296063a3 (diff)
downloadsrc-51447e4962fa9fd93747da198e46e6221015c91d.tar.gz
src-51447e4962fa9fd93747da198e46e6221015c91d.zip
Remove pre-FreeBSD 11 compat code.
Notes
Notes: svn path=/head/; revision=358508
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r--sys/cam/ctl/ctl_ha.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/sys/cam/ctl/ctl_ha.c b/sys/cam/ctl/ctl_ha.c
index 346181e32363..8afb1162abc7 100644
--- a/sys/cam/ctl/ctl_ha.c
+++ b/sys/cam/ctl/ctl_ha.c
@@ -66,68 +66,6 @@ __FBSDID("$FreeBSD$");
#include <cam/ctl/ctl_debug.h>
#include <cam/ctl/ctl_error.h>
-#if (__FreeBSD_version < 1100000)
-struct mbufq {
- struct mbuf *head;
- struct mbuf *tail;
-};
-
-static void
-mbufq_init(struct mbufq *q, int limit)
-{
-
- q->head = q->tail = NULL;
-}
-
-static void
-mbufq_drain(struct mbufq *q)
-{
- struct mbuf *m;
-
- while ((m = q->head) != NULL) {
- q->head = m->m_nextpkt;
- m_freem(m);
- }
- q->tail = NULL;
-}
-
-static struct mbuf *
-mbufq_dequeue(struct mbufq *q)
-{
- struct mbuf *m;
-
- m = q->head;
- if (m) {
- if (q->tail == m)
- q->tail = NULL;
- q->head = m->m_nextpkt;
- m->m_nextpkt = NULL;
- }
- return (m);
-}
-
-static void
-mbufq_enqueue(struct mbufq *q, struct mbuf *m)
-{
-
- m->m_nextpkt = NULL;
- if (q->tail)
- q->tail->m_nextpkt = m;
- else
- q->head = m;
- q->tail = m;
-}
-
-static u_int
-sbavail(struct sockbuf *sb)
-{
- return (sb->sb_cc);
-}
-
-#if (__FreeBSD_version < 1000000)
-#define mtodo(m, o) ((void *)(((m)->m_data) + (o)))
-#endif
-#endif
struct ha_msg_wire {
uint32_t channel;