PERFORCE change 118861 for review
Kip Macy
kmacy at FreeBSD.org
Fri Apr 27 06:50:29 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=118861
Change 118861 by kmacy at kmacy_vt-x:opentoe_init on 2007/04/27 06:50:23
remove toe_compat
convert toe_offload.h to BSD equivs
Affected files ...
.. //depot/projects/opentoe/sys/dev/cxgb/ulp/toecore/toe_compat.h#2 delete
.. //depot/projects/opentoe/sys/dev/cxgb/ulp/toecore/toe_offload.h#2 edit
Differences ...
==== //depot/projects/opentoe/sys/dev/cxgb/ulp/toecore/toe_offload.h#2 (text+ko) ====
@@ -1,40 +1,19 @@
-/*
- * Copyright (C) 2003-2006 Chelsio Communications. All rights reserved.
- *
- * Written by Dimitris Michailidis (dm at chelsio.com)
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59
- * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
#ifndef _NET_OFFLOAD_H
#define _NET_OFFLOAD_H
-#if defined(CONFIG_TCP_OFFLOAD_MODULE)
# define SOCK_OFFLOADED (SOCK_QUEUE_SHRUNK + 1)
-#endif
enum {
OFFLOAD_LISTEN_START,
OFFLOAD_LISTEN_STOP
};
-struct sock;
-struct sk_buff;
+struct socket;
+struct mbuf;
struct toedev;
-struct notifier_block;
+struct eventhandler_list;
+#if 0
/* Per-skb backlog handler. Run when a socket's backlog is processed. */
struct blog_skb_cb {
void (*backlog_rcv) (struct sock *sk, struct sk_buff *skb);
@@ -42,29 +21,12 @@
};
#define BLOG_SKB_CB(skb) ((struct blog_skb_cb *)(skb)->cb)
+#endif
-#if defined(CONFIG_TCP_OFFLOAD) || \
- (defined(CONFIG_TCP_OFFLOAD_MODULE) && defined(MODULE))
-extern int register_listen_offload_notifier(struct notifier_block *nb);
-extern int unregister_listen_offload_notifier(struct notifier_block *nb);
-extern int start_listen_offload(struct sock *sk);
-extern int stop_listen_offload(struct sock *sk);
-extern int tcp_connect_offload(struct sock *sk);
-#else
-static inline int tcp_connect_offload(struct sock *sk)
-{
- return 0;
-}
-
-static inline int start_listen_offload(struct sock *sk)
-{
- return -EPROTONOSUPPORT;
-}
-
-static inline int stop_listen_offload(struct sock *sk)
-{
- return -EPROTONOSUPPORT;
-}
-#endif
+extern int register_listen_offload_notifier(struct eventhandler_list *nb);
+extern int unregister_listen_offload_notifier(struct eventhandler_list *nb);
+extern int start_listen_offload(struct socket *so);
+extern int stop_listen_offload(struct socket *so);
+extern int tcp_connect_offload(struct socket *so);
#endif /* !_NET_OFFLOAD_H */
More information about the p4-projects
mailing list