From owner-p4-projects@FreeBSD.ORG Fri Apr 27 06:50:29 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BDF6E16A40B; Fri, 27 Apr 2007 06:50:28 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7807216A519 for ; Fri, 27 Apr 2007 06:50:28 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 6712213C4AD for ; Fri, 27 Apr 2007 06:50:28 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3R6oSjj078258 for ; Fri, 27 Apr 2007 06:50:28 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3R6oSU1078254 for perforce@freebsd.org; Fri, 27 Apr 2007 06:50:28 GMT (envelope-from kmacy@freebsd.org) Date: Fri, 27 Apr 2007 06:50:28 GMT Message-Id: <200704270650.l3R6oSU1078254@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 118861 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 06:50:29 -0000 http://perforce.freebsd.org/chv.cgi?CH=118861 Change 118861 by kmacy@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@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 */