summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2010-06-03 00:00:45 +0000
committerjfv <jfv@FreeBSD.org>2010-06-03 00:00:45 +0000
commit3112aa25052f36656d511d04474d1bf95ca17fbc (patch)
treec042f0df6d458623a1e28829c88e1e711a5853d6 /sys/dev/ixgbe/ixgbe.h
parent279a3628f7216931b771ca3dc76a61711fa0667d (diff)
downloadFreeBSD-src-3112aa25052f36656d511d04474d1bf95ca17fbc.zip
FreeBSD-src-3112aa25052f36656d511d04474d1bf95ca17fbc.tar.gz
Fixes for panic experienced in test at Intel, when
doing bidirectional stress traffic on 82598. Also a couple bug fixes from Michael Tuexen, thank you!! Add a workaround into the header so that 8 REL can use the driver (adds local copy of ALTQ fix). MFC: in a few days
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.h')
-rw-r--r--sys/dev/ixgbe/ixgbe.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixgbe.h b/sys/dev/ixgbe/ixgbe.h
index 3fdd404..518b9f5 100644
--- a/sys/dev/ixgbe/ixgbe.h
+++ b/sys/dev/ixgbe/ixgbe.h
@@ -473,4 +473,17 @@ ixgbe_is_sfp(struct ixgbe_hw *hw)
}
}
+/* Workaround to make 8.0 buildable */
+#if __FreeBSD_version < 800504
+static __inline int
+drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br)
+{
+#ifdef ALTQ
+ if (ALTQ_IS_ENABLED(&ifp->if_snd))
+ return (1);
+#endif
+ return (!buf_ring_empty(br));
+}
+#endif
+
#endif /* _IXGBE_H_ */
OpenPOWER on IntegriCloud