From owner-svn-src-projects@FreeBSD.ORG Mon Jan 19 21:30:42 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8FF47C6; Mon, 19 Jan 2015 21:30:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 C52C5BBF; Mon, 19 Jan 2015 21:30:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0JLUfNb058859; Mon, 19 Jan 2015 21:30:41 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0JLUfVb058858; Mon, 19 Jan 2015 21:30:41 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201501192130.t0JLUfVb058858@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Mon, 19 Jan 2015 21:30:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r277398 - projects/ifnet/sys/dev/virtio/network X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2015 21:30:42 -0000 Author: glebius Date: Mon Jan 19 21:30:40 2015 New Revision: 277398 URL: https://svnweb.freebsd.org/changeset/base/277398 Log: Mechanically rename rest of s/struct ifnet */if_t/. Modified: projects/ifnet/sys/dev/virtio/network/if_vtnet.c Modified: projects/ifnet/sys/dev/virtio/network/if_vtnet.c ============================================================================== --- projects/ifnet/sys/dev/virtio/network/if_vtnet.c Mon Jan 19 21:27:34 2015 (r277397) +++ projects/ifnet/sys/dev/virtio/network/if_vtnet.c Mon Jan 19 21:30:40 2015 (r277398) @@ -2401,7 +2401,7 @@ vtnet_qflush(if_t ifp) static int vtnet_watchdog(struct vtnet_txq *txq) { - struct ifnet *ifp; + if_t ifp; ifp = txq->vtntx_sc->vtnet_ifp; @@ -2490,7 +2490,7 @@ static void vtnet_tick(void *xsc) { struct vtnet_softc *sc; - struct ifnet *ifp; + if_t ifp; int i, timedout; sc = xsc; @@ -2633,7 +2633,7 @@ static void vtnet_stop(struct vtnet_softc *sc) { device_t dev; - struct ifnet *ifp; + if_t ifp; dev = sc->vtnet_dev; ifp = sc->vtnet_ifp; @@ -2663,7 +2663,7 @@ static int vtnet_virtio_reinit(struct vtnet_softc *sc) { device_t dev; - struct ifnet *ifp; + if_t ifp; uint64_t features; uint32_t mask; int error; @@ -2708,7 +2708,7 @@ vtnet_virtio_reinit(struct vtnet_softc * static void vtnet_init_rx_filters(struct vtnet_softc *sc) { - struct ifnet *ifp; + if_t ifp; ifp = sc->vtnet_ifp; @@ -2835,7 +2835,7 @@ vtnet_set_active_vq_pairs(struct vtnet_s static int vtnet_reinit(struct vtnet_softc *sc) { - struct ifnet *ifp; + if_t ifp; int error; ifp = sc->vtnet_ifp; @@ -2863,7 +2863,7 @@ static void vtnet_init_locked(struct vtnet_softc *sc) { device_t dev; - struct ifnet *ifp; + if_t ifp; dev = sc->vtnet_dev; ifp = sc->vtnet_ifp; @@ -3066,7 +3066,7 @@ vtnet_set_allmulti(struct vtnet_softc *s static void vtnet_attach_disable_promisc(struct vtnet_softc *sc) { - struct ifnet *ifp; + if_t ifp; ifp = sc->vtnet_ifp; @@ -3085,7 +3085,7 @@ static void vtnet_rx_filter(struct vtnet_softc *sc) { device_t dev; - struct ifnet *ifp; + if_t ifp; dev = sc->vtnet_dev; ifp = sc->vtnet_ifp; @@ -3156,7 +3156,7 @@ vtnet_rx_filter_mac(struct vtnet_softc * struct vtnet_mac_filter *filter; struct sglist_seg segs[4]; struct sglist sg; - struct ifnet *ifp; + if_t ifp; int promisc, allmulti, error; uint8_t ack; @@ -3281,7 +3281,7 @@ vtnet_rx_filter_vlan(struct vtnet_softc static void vtnet_update_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag) { - struct ifnet *ifp; + if_t ifp; int idx, bit; ifp = sc->vtnet_ifp; @@ -3309,7 +3309,7 @@ vtnet_update_vlan_filter(struct vtnet_so } static void -vtnet_register_vlan(void *arg, struct ifnet *ifp, uint16_t tag) +vtnet_register_vlan(void *arg, if_t ifp, uint16_t tag) { if (if_getsoftc(ifp, IF_DRIVER_SOFTC) != arg) @@ -3319,7 +3319,7 @@ vtnet_register_vlan(void *arg, struct if } static void -vtnet_unregister_vlan(void *arg, struct ifnet *ifp, uint16_t tag) +vtnet_unregister_vlan(void *arg, if_t ifp, uint16_t tag) { if (if_getsoftc(ifp, IF_DRIVER_SOFTC) != arg) @@ -3332,7 +3332,7 @@ static int vtnet_is_link_up(struct vtnet_softc *sc) { device_t dev; - struct ifnet *ifp; + if_t ifp; uint16_t status; dev = sc->vtnet_dev; @@ -3350,7 +3350,7 @@ vtnet_is_link_up(struct vtnet_softc *sc) static void vtnet_update_link_status(struct vtnet_softc *sc) { - struct ifnet *ifp; + if_t ifp; int link; ifp = sc->vtnet_ifp; @@ -3369,7 +3369,7 @@ vtnet_update_link_status(struct vtnet_so } static int -vtnet_ifmedia_upd(struct ifnet *ifp) +vtnet_ifmedia_upd(if_t ifp) { struct vtnet_softc *sc; struct ifmedia *ifm; @@ -3384,7 +3384,7 @@ vtnet_ifmedia_upd(struct ifnet *ifp) } static void -vtnet_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr) +vtnet_ifmedia_sts(if_t ifp, struct ifmediareq *ifmr) { struct vtnet_softc *sc;