From owner-svn-src-all@freebsd.org Tue Oct 20 19:19:49 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B05EFA1859A; Tue, 20 Oct 2015 19:19:49 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75E5126B; Tue, 20 Oct 2015 19:19:49 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9KJJmxW037585; Tue, 20 Oct 2015 19:19:48 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9KJJmR6037583; Tue, 20 Oct 2015 19:19:48 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201510201919.t9KJJmR6037583@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: "Conrad E. Meyer" Date: Tue, 20 Oct 2015 19:19:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289645 - in head/sys/dev/ntb: if_ntb ntb_hw X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 19:19:49 -0000 Author: cem Date: Tue Oct 20 19:19:48 2015 New Revision: 289645 URL: https://svnweb.freebsd.org/changeset/base/289645 Log: NTB: MFV 7eb38781: Print driver name in module init Prints driver name to indicate what is being loaded. Authored by: Dave Jiang Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/ntb/if_ntb/if_ntb.c head/sys/dev/ntb/ntb_hw/ntb_hw.c Modified: head/sys/dev/ntb/if_ntb/if_ntb.c ============================================================================== --- head/sys/dev/ntb/if_ntb/if_ntb.c Tue Oct 20 19:08:26 2015 (r289644) +++ head/sys/dev/ntb/if_ntb/if_ntb.c Tue Oct 20 19:19:48 2015 (r289645) @@ -393,6 +393,9 @@ ntb_setup_interface(void) ntb_transport_link_up(net_softc.qp); net_softc.bufsize = ntb_transport_max_size(net_softc.qp) + sizeof(struct ether_header); + + if_printf(ifp, "if_ntb device setup\n"); + return (0); } @@ -404,6 +407,7 @@ ntb_teardown_interface(void) ntb_transport_link_down(net_softc.qp); if (net_softc.ifp != NULL) { + if_printf(net_softc.ifp, "if_ntb device destroyed\n"); ether_ifdetach(net_softc.ifp); if_free(net_softc.ifp); } Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw.c Tue Oct 20 19:08:26 2015 (r289644) +++ head/sys/dev/ntb/ntb_hw/ntb_hw.c Tue Oct 20 19:19:48 2015 (r289645) @@ -530,6 +530,8 @@ ntb_attach(device_t device) pci_enable_busmaster(ntb->device); + device_printf(ntb->device, "NTB device registered\n"); + out: if (error != 0) ntb_detach(device); @@ -561,6 +563,8 @@ ntb_detach(device_t device) ntb_detect_max_mw(ntb); ntb_unmap_pci_bar(ntb); + device_printf(ntb->device, "NTB device unregistered\n"); + return (0); }