summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-06 10:35:46 +0000
committerbz <bz@FreeBSD.org>2008-11-06 10:35:46 +0000
commit0ed604b5801f457a2fb0795b6bde4bfab8c87fda (patch)
treeb9daab6ad8caf0df59428d2d1ef1a04a91ae1788 /sys/dev/cxgb
parent11a8a600e20bfb7941ab71c2d5f2e1a6dba2169d (diff)
downloadFreeBSD-src-0ed604b5801f457a2fb0795b6bde4bfab8c87fda.zip
FreeBSD-src-0ed604b5801f457a2fb0795b6bde4bfab8c87fda.tar.gz
For now our LRO code (tcp_lro.c) only supports IPv4 properly thus
only enable if INET is on. Reviewed by: kmacy MFC after: 2 months
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r--sys/dev/cxgb/cxgb_osdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_osdep.h b/sys/dev/cxgb/cxgb_osdep.h
index 773d12d..ba37cb9 100644
--- a/sys/dev/cxgb/cxgb_osdep.h
+++ b/sys/dev/cxgb/cxgb_osdep.h
@@ -110,7 +110,10 @@ struct t3_mbuf_hdr {
#endif
#if __FreeBSD_version >= 701000
+#include "opt_inet.h"
+#ifdef INET
#define LRO_SUPPORTED
+#endif
#define TOE_SUPPORTED
#endif
OpenPOWER on IntegriCloud