From owner-p4-projects@FreeBSD.ORG Fri Jan 6 17:18:49 2006 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 6CEF916A422; Fri, 6 Jan 2006 17:18:49 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4356B16A41F for ; Fri, 6 Jan 2006 17:18:49 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E898E43D46 for ; Fri, 6 Jan 2006 17:18:48 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k06HImKM032291 for ; Fri, 6 Jan 2006 17:18:48 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k06HImbR032288 for perforce@freebsd.org; Fri, 6 Jan 2006 17:18:48 GMT (envelope-from kmacy@freebsd.org) Date: Fri, 6 Jan 2006 17:18:48 GMT Message-Id: <200601061718.k06HImbR032288@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 89275 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, 06 Jan 2006 17:18:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=89275 Change 89275 by kmacy@kmacy:freebsd7_xen3 on 2006/01/06 17:17:52 update copyright remove dead code Affected files ... .. //depot/projects/xen3/src/sys/dev/xen/netfront/netfront.c#4 edit Differences ... ==== //depot/projects/xen3/src/sys/dev/xen/netfront/netfront.c#4 (text+ko) ==== @@ -1,6 +1,6 @@ /* * - * Copyright (c) 2004-2005 Kip Macy + * Copyright (c) 2004-2006 Kip Macy * All rights reserved. * * @@ -16,8 +16,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "opt_nfsroot.h" - #include #include #include @@ -124,34 +122,6 @@ struct mbuf *xn_rx_chain[NET_RX_RING_SIZE+1]; }; -struct xn_softc { - struct arpcom arpcom; /* interface info */ - device_t xn_dev; - SLIST_ENTRY(xn_softc) xn_links; - void *xn_intrhand; - struct resource *xn_res; - u_int8_t xn_ifno; /* interface number */ - - int xn_txcnt; - int xn_rxbufcnt; - unsigned int xn_irq; - unsigned int xn_evtchn; - - - /* What is the status of our connection to the remote backend? */ -#define BEST_CLOSED 0 -#define BEST_DISCONNECTED 1 -#define BEST_CONNECTED 2 - unsigned int xn_backend_state; - - /* Is this interface open or closed (down or up)? */ -#define UST_CLOSED 0 -#define UST_OPEN 1 - unsigned int xn_user_state; - - int xn_rx_target; /* number to allocate */ - -}; static unsigned long rx_pfn_array[NET_RX_RING_SIZE]; static multicall_entry_t rx_mcl[NET_RX_RING_SIZE+1]; @@ -1459,15 +1429,7 @@ static void netif_disconnect_backend(struct netfront_info *info) { -#if 0 - /* Stop old i/f to prevent errors whilst we rebuild the state. */ - mtx_lock_spin(&info->tx_lock); - mtx_lock(&info->rx_lock); - netif_stop_queue(info->netdev); - /* info->backend_state = BEST_DISCONNECTED; */ - mtx_unlock(&info->rx_lock); - mtx_unlock_spin(&info->tx_lock); -#endif + xn_stop(info); end_access(info->tx_ring_ref, info->tx.sring); end_access(info->rx_ring_ref, info->rx.sring); info->tx_ring_ref = GRANT_INVALID_REF; @@ -1510,28 +1472,14 @@ .otherend_changed = backend_changed, }; -#if 0 -static struct notifier_block notifier_inetdev = { - .notifier_call = inetdev_notify, - .next = NULL, - .priority = 0 -}; -#endif - static void netif_init(void *unused) { if (xen_start_info->flags & SIF_INITDOMAIN) return; -#if 0 - if ((err = xennet_proc_init()) != 0) - return err; -#endif + IPRINTK("Initialising virtual ethernet driver.\n"); -#if 0 - (void)register_inetaddr_notifier(¬ifier_inetdev); -#endif xenbus_register_frontend(&netfront);