aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/bxe.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/bxe/bxe.h')
-rw-r--r--sys/dev/bxe/bxe.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/bxe/bxe.h b/sys/dev/bxe/bxe.h
index 65ed21ce41fd..73b27b3b3b6f 100644
--- a/sys/dev/bxe/bxe.h
+++ b/sys/dev/bxe/bxe.h
@@ -2271,6 +2271,17 @@ void bxe_dump_mem(struct bxe_softc *sc, char *tag,
void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag,
struct mbuf *m, uint8_t contents);
+
+#if __FreeBSD_version >= 800000
+#if __FreeBSD_version >= 1000000
+#define BXE_SET_FLOWID(m) M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE)
+#define BXE_VALID_FLOWID(m) (M_HASHTYPE_GET(m) != M_HASHTYPE_NONE)
+#else
+#define BXE_VALID_FLOWID(m) ((m->m_flags & M_FLOWID) != 0)
+#define BXE_SET_FLOWID(m) m->m_flags |= M_FLOWID
+#endif
+#endif /* #if __FreeBSD_version >= 800000 */
+
/***********/
/* INLINES */
/***********/