aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgb/cxgb_osdep.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-09-23 02:22:24 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-09-23 02:22:24 +0000
commite97121da99f0b5abd541ec06666fe09d8530bc8f (patch)
tree92dfdc37922d95903308af5bb4ec1bb495dcbd30 /sys/dev/cxgb/cxgb_osdep.h
parentf1dea04adb18d8d7566a6931f5011f3df81eea6e (diff)
downloadsrc-e97121da99f0b5abd541ec06666fe09d8530bc8f.tar.gz
src-e97121da99f0b5abd541ec06666fe09d8530bc8f.zip
Allow cxgb to be unified across versions by making newer features conditional
Submitted by: Chelsio Inc MFC after: 3 days
Notes
Notes: svn path=/head/; revision=183289
Diffstat (limited to 'sys/dev/cxgb/cxgb_osdep.h')
-rw-r--r--sys/dev/cxgb/cxgb_osdep.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_osdep.h b/sys/dev/cxgb/cxgb_osdep.h
index 96072bbe9103..2f3d0ce0c106 100644
--- a/sys/dev/cxgb/cxgb_osdep.h
+++ b/sys/dev/cxgb/cxgb_osdep.h
@@ -114,6 +114,11 @@ struct t3_mbuf_hdr {
#define M_SANITY(m, n)
#endif
+#if __FreeBSD_version >= 701000
+#define LRO_SUPPORTED
+#define TOE_SUPPORTED
+#endif
+
#define __read_mostly __attribute__((__section__(".data.read_mostly")))
/*