summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_offload.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-04-19 03:22:43 +0000
committerkmacy <kmacy@FreeBSD.org>2008-04-19 03:22:43 +0000
commit4eae976a6a94001a26e9b7347d542ccfde88d852 (patch)
tree8ac6e64c52ad85d4350d06453dcab7b7401ec3d0 /sys/netinet/tcp_offload.h
parent9ecfa6893d5daa2aae8a4b6d608e8ce156782c6d (diff)
downloadFreeBSD-src-4eae976a6a94001a26e9b7347d542ccfde88d852.zip
FreeBSD-src-4eae976a6a94001a26e9b7347d542ccfde88d852.tar.gz
move cxgb_lt2.[ch] from NIC to TOE
move most offload functionality from NIC to TOE factor out all socket and inpcb direct access factor out access to locking in incpb, pcbinfo, and sockbuf
Diffstat (limited to 'sys/netinet/tcp_offload.h')
-rw-r--r--sys/netinet/tcp_offload.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/tcp_offload.h b/sys/netinet/tcp_offload.h
index 21ecba4..7626d9b 100644
--- a/sys/netinet/tcp_offload.h
+++ b/sys/netinet/tcp_offload.h
@@ -229,6 +229,12 @@ int tcp_offload_connect(struct socket *so, struct sockaddr *nam);
* Connection is offloaded
*/
#define tp_offload(tp) ((tp)->t_flags & TF_TOE)
+
+/*
+ * hackish way of allowing this file to also be included by TOE
+ * which needs to be kept ignorant of socket implementation details
+ */
+#ifdef _SYS_SOCKETVAR_H_
/*
* The socket has not been marked as "do not offload"
*/
@@ -324,7 +330,7 @@ tcp_offload_listen_close(struct tcpcb *tp)
EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp);
#endif
}
-
-#undef tp_offload
#undef SO_OFFLOADABLE
+#endif /* _SYS_SOCKETVAR_H_ */
+#undef tp_offload
#endif /* _NETINET_TCP_OFFLOAD_H_ */
OpenPOWER on IntegriCloud