From 4eae976a6a94001a26e9b7347d542ccfde88d852 Mon Sep 17 00:00:00 2001 From: kmacy Date: Sat, 19 Apr 2008 03:22:43 +0000 Subject: 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 --- sys/netinet/tcp_offload.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/netinet') 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_ */ -- cgit v1.1