diff --git a/sys/arch/arm/imx/if_enet.c b/sys/arch/arm/imx/if_enet.c index e2e93a03b1cb..b6a537c2c350 100644 --- a/sys/arch/arm/imx/if_enet.c +++ b/sys/arch/arm/imx/if_enet.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_enet.c,v 1.33 2020/12/31 02:16:14 uwe Exp $ */ +/* $NetBSD: if_enet.c,v 1.34 2021/12/31 14:25:22 riastradh Exp $ */ /* * Copyright (c) 2014 Ryo Shimizu @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.33 2020/12/31 02:16:14 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.34 2021/12/31 14:25:22 riastradh Exp $"); #include "vlan.h" @@ -1027,7 +1027,7 @@ enet_ioctl(struct ifnet *ifp, u_long command, void *data) error = 0; switch (command) { case SIOCSIFCAP: - error = (*ifp->if_init)(ifp); + error = if_init(ifp); break; case SIOCADDMULTI: case SIOCDELMULTI: diff --git a/sys/arch/arm/sociox/if_ave.c b/sys/arch/arm/sociox/if_ave.c index afde8ca26ea4..e0d13790ea27 100644 --- a/sys/arch/arm/sociox/if_ave.c +++ b/sys/arch/arm/sociox/if_ave.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ave.c,v 1.21 2021/01/27 03:10:19 thorpej Exp $ */ +/* $NetBSD: if_ave.c,v 1.22 2021/12/31 14:25:22 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ave.c,v 1.21 2021/01/27 03:10:19 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ave.c,v 1.22 2021/12/31 14:25:22 riastradh Exp $"); #include #include @@ -790,7 +790,7 @@ ave_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/arch/arm/sociox/if_scx.c b/sys/arch/arm/sociox/if_scx.c index 49514a1455aa..872bdffc87fd 100644 --- a/sys/arch/arm/sociox/if_scx.c +++ b/sys/arch/arm/sociox/if_scx.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_scx.c,v 1.33 2021/12/21 21:30:49 nisimura Exp $ */ +/* $NetBSD: if_scx.c,v 1.34 2021/12/31 14:25:22 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -46,7 +46,7 @@ #define NOT_MP_SAFE 0 #include -__KERNEL_RCSID(0, "$NetBSD: if_scx.c,v 1.33 2021/12/21 21:30:49 nisimura Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_scx.c,v 1.34 2021/12/31 14:25:22 riastradh Exp $"); #include #include @@ -1201,7 +1201,7 @@ scx_ioctl(struct ifnet *ifp, u_long cmd, void *data) break; error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/arch/arm/sunxi/sunxi_emac.c b/sys/arch/arm/sunxi/sunxi_emac.c index 60c01c989466..6bea3f60ac29 100644 --- a/sys/arch/arm/sunxi/sunxi_emac.c +++ b/sys/arch/arm/sunxi/sunxi_emac.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunxi_emac.c,v 1.34 2021/11/07 19:21:33 jmcneill Exp $ */ +/* $NetBSD: sunxi_emac.c,v 1.35 2021/12/31 14:25:22 riastradh Exp $ */ /*- * Copyright (c) 2016-2017 Jared McNeill @@ -33,7 +33,7 @@ #include "opt_net_mpsafe.h" #include -__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.34 2021/11/07 19:21:33 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.35 2021/12/31 14:25:22 riastradh Exp $"); #include #include @@ -932,7 +932,7 @@ sunxi_emac_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if ((ifp->if_flags & IFF_RUNNING) != 0) { diff --git a/sys/arch/arm/xscale/ixp425_if_npe.c b/sys/arch/arm/xscale/ixp425_if_npe.c index e16da0a909da..cd80bc890659 100644 --- a/sys/arch/arm/xscale/ixp425_if_npe.c +++ b/sys/arch/arm/xscale/ixp425_if_npe.c @@ -1,4 +1,4 @@ -/* $NetBSD: ixp425_if_npe.c,v 1.49 2021/12/31 14:24:38 riastradh Exp $ */ +/* $NetBSD: ixp425_if_npe.c,v 1.50 2021/12/31 14:25:22 riastradh Exp $ */ /*- * Copyright (c) 2006 Sam Leffler. All rights reserved. @@ -28,7 +28,7 @@ #if 0 __FBSDID("$FreeBSD: src/sys/arm/xscale/ixp425/if_npe.c,v 1.1 2006/11/19 23:55:23 sam Exp $"); #endif -__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.49 2021/12/31 14:24:38 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.50 2021/12/31 14:25:22 riastradh Exp $"); /* * Intel XScale NPE Ethernet driver. @@ -1435,7 +1435,7 @@ npeioctl(struct ifnet *ifp, u_long cmd, void *data) * If interface is marked up and it is stopped, then * start it. */ - error = (*ifp->if_init)(ifp); + error = if_init(ifp); } else if ((ifp->if_flags & IFF_UP) != 0) { u_short diff; @@ -1457,7 +1457,7 @@ npeioctl(struct ifnet *ifp, u_long cmd, void *data) * any other flags that affect the hardware * state. */ - error = (*ifp->if_init)(ifp); + error = if_init(ifp); } } sc->sc_if_flags = ifp->if_flags; diff --git a/sys/dev/cadence/if_cemac.c b/sys/dev/cadence/if_cemac.c index fd5aaf36ad3b..5809effc1921 100644 --- a/sys/dev/cadence/if_cemac.c +++ b/sys/dev/cadence/if_cemac.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cemac.c,v 1.23 2020/06/28 12:43:00 skrll Exp $ */ +/* $NetBSD: if_cemac.c,v 1.24 2021/12/31 14:25:22 riastradh Exp $ */ /* * Copyright (c) 2015 Genetec Corporation. All rights reserved. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.23 2020/06/28 12:43:00 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.24 2021/12/31 14:25:22 riastradh Exp $"); #include #include @@ -759,7 +759,7 @@ cemac_ifioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) { - error = (*ifp->if_init)(ifp); + error = if_init(ifp); } else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/dev/ic/bcmgenet.c b/sys/dev/ic/bcmgenet.c index 2040f1e12bc6..1afc29de87f6 100644 --- a/sys/dev/ic/bcmgenet.c +++ b/sys/dev/ic/bcmgenet.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcmgenet.c,v 1.10 2021/08/10 15:28:44 jmcneill Exp $ */ +/* $NetBSD: bcmgenet.c,v 1.11 2021/12/31 14:25:22 riastradh Exp $ */ /*- * Copyright (c) 2020 Jared McNeill @@ -34,7 +34,7 @@ #include "opt_ddb.h" #include -__KERNEL_RCSID(0, "$NetBSD: bcmgenet.c,v 1.10 2021/08/10 15:28:44 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcmgenet.c,v 1.11 2021/12/31 14:25:22 riastradh Exp $"); #include #include @@ -916,7 +916,7 @@ genet_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if ((ifp->if_flags & IFF_RUNNING) != 0) { diff --git a/sys/dev/ic/dm9000.c b/sys/dev/ic/dm9000.c index e3c68052c42f..0eb4eda1629e 100644 --- a/sys/dev/ic/dm9000.c +++ b/sys/dev/ic/dm9000.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm9000.c,v 1.32 2021/12/05 07:26:35 msaitoh Exp $ */ +/* $NetBSD: dm9000.c,v 1.33 2021/12/31 14:25:22 riastradh Exp $ */ /* * Copyright (c) 2009 Paul Fleischer @@ -833,7 +833,7 @@ dme_ioctl(struct ifnet *ifp, u_long cmd, void *data) break; error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags && IFF_RUNNING) { diff --git a/sys/dev/ic/rtl8169.c b/sys/dev/ic/rtl8169.c index dd36ea119cbf..c89ff6c387d3 100644 --- a/sys/dev/ic/rtl8169.c +++ b/sys/dev/ic/rtl8169.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtl8169.c,v 1.168 2021/09/04 19:27:43 jakllsch Exp $ */ +/* $NetBSD: rtl8169.c,v 1.169 2021/12/31 14:25:22 riastradh Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.168 2021/09/04 19:27:43 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.169 2021/12/31 14:25:22 riastradh Exp $"); /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */ /* @@ -2130,7 +2130,7 @@ re_ioctl(struct ifnet *ifp, u_long command, void *data) error = 0; if (command == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (command != SIOCADDMULTI && command != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) diff --git a/sys/dev/pci/if_dge.c b/sys/dev/pci/if_dge.c index 565a16a70b01..29bc2d3f119f 100644 --- a/sys/dev/pci/if_dge.c +++ b/sys/dev/pci/if_dge.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_dge.c,v 1.62 2021/12/05 04:32:36 msaitoh Exp $ */ +/* $NetBSD: if_dge.c,v 1.63 2021/12/31 14:25:23 riastradh Exp $ */ /* * Copyright (c) 2004, SUNET, Swedish University Computer Network. @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_dge.c,v 1.62 2021/12/05 04:32:36 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_dge.c,v 1.63 2021/12/31 14:25:23 riastradh Exp $"); @@ -1453,7 +1453,7 @@ dge_ioctl(struct ifnet *ifp, u_long cmd, void *data) else if ((error = ifioctl_common(ifp, cmd, data)) != ENETRESET) break; else if (ifp->if_flags & IFF_UP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else error = 0; break; @@ -1488,7 +1488,7 @@ dge_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c index 0c63cef8c1dd..a3c6930db8ec 100644 --- a/sys/dev/pci/if_iwn.c +++ b/sys/dev/pci/if_iwn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iwn.c,v 1.97 2021/09/19 11:37:01 andvar Exp $ */ +/* $NetBSD: if_iwn.c,v 1.98 2021/12/31 14:25:23 riastradh Exp $ */ /* $OpenBSD: if_iwn.c,v 1.135 2014/09/10 07:22:09 dcoppa Exp $ */ /*- @@ -22,7 +22,7 @@ * adapters. */ #include -__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.97 2021/09/19 11:37:01 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.98 2021/12/31 14:25:23 riastradh Exp $"); #define IWN_USE_RBUF /* Use local storage for RX */ #undef IWN_HWCRYPTO /* XXX does not even compile yet */ @@ -973,7 +973,7 @@ iwn_power(int why, void *arg) s = splnet(); ifp = &sc->sc_ic.ic_if; if (ifp->if_flags & IFF_UP) { - ifp->if_init(ifp); + if_init(ifp); if (ifp->if_flags & IFF_RUNNING) ifp->if_start(ifp); } diff --git a/sys/dev/pci/if_kse.c b/sys/dev/pci/if_kse.c index f3f5c2ce1021..03cbba6a6e6d 100644 --- a/sys/dev/pci/if_kse.c +++ b/sys/dev/pci/if_kse.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_kse.c,v 1.57 2021/05/08 00:27:02 thorpej Exp $ */ +/* $NetBSD: if_kse.c,v 1.58 2021/12/31 14:25:23 riastradh Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.57 2021/05/08 00:27:02 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.58 2021/12/31 14:25:23 riastradh Exp $"); #include #include @@ -689,7 +689,7 @@ kse_ioctl(struct ifnet *ifp, u_long cmd, void *data) break; error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/dev/pci/if_sip.c b/sys/dev/pci/if_sip.c index bc340603ffc4..3b85c2b81b59 100644 --- a/sys/dev/pci/if_sip.c +++ b/sys/dev/pci/if_sip.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_sip.c,v 1.183 2021/10/21 13:21:54 andvar Exp $ */ +/* $NetBSD: if_sip.c,v 1.184 2021/12/31 14:25:23 riastradh Exp $ */ /*- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.183 2021/10/21 13:21:54 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.184 2021/12/31 14:25:23 riastradh Exp $"); #include #include @@ -1869,7 +1869,7 @@ sipcom_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/dev/pci/if_wm.c b/sys/dev/pci/if_wm.c index 1c2a6a9f2b56..77d11fb16629 100644 --- a/sys/dev/pci/if_wm.c +++ b/sys/dev/pci/if_wm.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wm.c,v 1.725 2021/12/23 17:05:49 hannken Exp $ */ +/* $NetBSD: if_wm.c,v 1.726 2021/12/31 14:25:23 riastradh Exp $ */ /* * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. @@ -82,7 +82,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.725 2021/12/23 17:05:49 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.726 2021/12/31 14:25:23 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_net_mpsafe.h" @@ -3675,7 +3675,7 @@ wm_ioctl(struct ifnet *ifp, u_long cmd, void *data) error = 0; if (cmd == SIOCSIFCAP) - error = (*ifp->if_init)(ifp); + error = if_init(ifp); else if (cmd != SIOCADDMULTI && cmd != SIOCDELMULTI) ; else if (ifp->if_flags & IFF_RUNNING) { diff --git a/sys/dev/pci/ixgbe/ixgbe.c b/sys/dev/pci/ixgbe/ixgbe.c index 1bdc1a8db3b4..449c22adbdc3 100644 --- a/sys/dev/pci/ixgbe/ixgbe.c +++ b/sys/dev/pci/ixgbe/ixgbe.c @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.301 2021/12/24 05:11:04 msaitoh Exp $ */ +/* $NetBSD: ixgbe.c,v 1.302 2021/12/31 14:25:23 riastradh Exp $ */ /****************************************************************************** @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.301 2021/12/24 05:11:04 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.302 2021/12/31 14:25:23 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -5770,7 +5770,7 @@ ixgbe_sysctl_dmac(SYSCTLFN_ARGS) /* Re-initialize hardware if it's already running */ if (ifp->if_flags & IFF_RUNNING) - ifp->if_init(ifp); + if_init(ifp); return (0); } @@ -6103,7 +6103,7 @@ ixgbe_sysctl_eee_state(SYSCTLFN_ARGS) } /* Restart auto-neg */ - ifp->if_init(ifp); + if_init(ifp); device_printf(dev, "New EEE state: %d\n", new_eee); diff --git a/sys/dev/usb/if_urtw.c b/sys/dev/usb/if_urtw.c index d0a55c951839..162141c8072f 100644 --- a/sys/dev/usb/if_urtw.c +++ b/sys/dev/usb/if_urtw.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_urtw.c,v 1.24 2020/03/15 23:04:51 thorpej Exp $ */ +/* $NetBSD: if_urtw.c,v 1.25 2021/12/31 14:25:24 riastradh Exp $ */ /* $OpenBSD: if_urtw.c,v 1.39 2011/07/03 15:47:17 matthew Exp $ */ /*- @@ -19,7 +19,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_urtw.c,v 1.24 2020/03/15 23:04:51 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urtw.c,v 1.25 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1045,7 +1045,7 @@ urtw_media_change(struct ifnet *ifp) if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING)) - ifp->if_init(ifp); + if_init(ifp); return 0; } @@ -2395,7 +2395,7 @@ urtw_ioctl(struct ifnet *ifp, u_long cmd, void *data) case IFF_UP|IFF_RUNNING: break; case IFF_UP: - ifp->if_init(ifp); + if_init(ifp); break; case IFF_RUNNING: urtw_stop(ifp, 1); @@ -2419,7 +2419,7 @@ urtw_ioctl(struct ifnet *ifp, u_long cmd, void *data) if (error == ENETRESET) { if (IS_RUNNING(ifp) && (ic->ic_roaming != IEEE80211_ROAMING_MANUAL)) - ifp->if_init(ifp); + if_init(ifp); error = 0; } diff --git a/sys/net/agr/if_agr.c b/sys/net/agr/if_agr.c index 735d15f5b74b..ad13c308bf66 100644 --- a/sys/net/agr/if_agr.c +++ b/sys/net/agr/if_agr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_agr.c,v 1.53 2021/09/30 03:15:25 yamaguchi Exp $ */ +/* $NetBSD: if_agr.c,v 1.54 2021/12/31 14:25:24 riastradh Exp $ */ /*- * Copyright (c)2005 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_agr.c,v 1.53 2021/09/30 03:15:25 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_agr.c,v 1.54 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -759,7 +759,7 @@ agrport_cleanup(struct agr_softc *sc, struct agr_port *port) memcpy(LLADDR(ifp_port->if_sadl), port->port_origlladdr, ifp_port->if_addrlen); if (ifp_port->if_init != NULL) { - error = (*ifp_port->if_init)(ifp_port); + error = if_init(ifp_port); } #else union { diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index c4519b0d27ba..79ca61d77c18 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_bridge.c,v 1.185 2021/12/31 14:24:50 riastradh Exp $ */ +/* $NetBSD: if_bridge.c,v 1.186 2021/12/31 14:25:24 riastradh Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.185 2021/12/31 14:24:50 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.186 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -618,7 +618,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, void *data) * If interface is marked up and it is stopped, then * start it. */ - error = (*ifp->if_init)(ifp); + error = if_init(ifp); break; default: break; diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e1213c4fb557..33aa2e99ae1d 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ethersubr.c,v 1.308 2021/12/31 14:24:38 riastradh Exp $ */ +/* $NetBSD: if_ethersubr.c,v 1.309 2021/12/31 14:25:24 riastradh Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.308 2021/12/31 14:24:38 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.309 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1468,7 +1468,7 @@ ether_ioctl_reinit(struct ethercom *ec) * If interface is marked up and it is stopped, then * start it. */ - return (*ifp->if_init)(ifp); + return if_init(ifp); case IFF_UP | IFF_RUNNING: error = 0; if (ec->ec_ifflags_cb != NULL) { @@ -1479,10 +1479,10 @@ ether_ioctl_reinit(struct ethercom *ec) * changes in any other flags that * affect the hardware state. */ - return (*ifp->if_init)(ifp); + return if_init(ifp); } } else - error = (*ifp->if_init)(ifp); + error = if_init(ifp); return error; case 0: break; @@ -1514,7 +1514,7 @@ ether_ioctl(struct ifnet *ifp, u_long cmd, void *data) && (ifp->if_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING)) { ifp->if_flags |= IFF_UP; - if ((error = (*ifp->if_init)(ifp)) != 0) + if ((error = if_init(ifp)) != 0) return error; } #ifdef INET @@ -1539,7 +1539,7 @@ ether_ioctl(struct ifnet *ifp, u_long cmd, void *data) return error; else if (ifp->if_flags & IFF_UP) { /* Make sure the device notices the MTU change. */ - return (*ifp->if_init)(ifp); + return if_init(ifp); } else return 0; } diff --git a/sys/net/if_ieee1394subr.c b/sys/net/if_ieee1394subr.c index 94f895c91d0b..b0df83e973ad 100644 --- a/sys/net/if_ieee1394subr.c +++ b/sys/net/if_ieee1394subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ieee1394subr.c,v 1.66 2020/08/28 06:23:42 ozaki-r Exp $ */ +/* $NetBSD: if_ieee1394subr.c,v 1.67 2021/12/31 14:25:24 riastradh Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.66 2020/08/28 06:23:42 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.67 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -681,13 +681,13 @@ ieee1394_ioctl(struct ifnet *ifp, u_long cmd, void *data) switch (ifa->ifa_addr->sa_family) { #ifdef INET case AF_INET: - if ((error = (*ifp->if_init)(ifp)) != 0) + if ((error = if_init(ifp)) != 0) break; arp_ifinit(ifp, ifa); break; #endif /* INET */ default: - error = (*ifp->if_init)(ifp); + error = if_init(ifp); break; } break; diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c index e21b0fad5646..c3d4837d2c1d 100644 --- a/sys/net/if_wg.c +++ b/sys/net/if_wg.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wg.c,v 1.66 2021/12/31 14:24:38 riastradh Exp $ */ +/* $NetBSD: if_wg.c,v 1.67 2021/12/31 14:25:24 riastradh Exp $ */ /* * Copyright (C) Ryota Ozaki @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.66 2021/12/31 14:24:38 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.67 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_altq_enabled.h" @@ -4619,7 +4619,7 @@ wg_ioctl(struct ifnet *ifp, u_long cmd, void *data) (ifp->if_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING)) { ifp->if_flags |= IFF_UP; - error = ifp->if_init(ifp); + error = if_init(ifp); } return error; case SIOCADDMULTI: @@ -4673,7 +4673,7 @@ wg_ioctl(struct ifnet *ifp, u_long cmd, void *data) * If interface is marked up and it is stopped, then * start it. */ - error = (*ifp->if_init)(ifp); + error = if_init(ifp); break; default: break; diff --git a/sys/net/lagg/if_lagg.c b/sys/net/lagg/if_lagg.c index b9feb56b3c08..51c6c5adff98 100644 --- a/sys/net/lagg/if_lagg.c +++ b/sys/net/lagg/if_lagg.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_lagg.c,v 1.27 2021/12/31 14:24:38 riastradh Exp $ */ +/* $NetBSD: if_lagg.c,v 1.28 2021/12/31 14:25:24 riastradh Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter @@ -20,7 +20,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.27 2021/12/31 14:24:38 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.28 2021/12/31 14:25:24 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -725,7 +725,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, void *data) break; case IFF_UP: case IFF_UP | IFF_RUNNING: - error = ifp->if_init(ifp); + error = if_init(ifp); break; } @@ -2115,7 +2115,7 @@ lagg_port_setsadl(struct lagg_port *lp, uint8_t *lladdr, if (ifp_port->if_init != NULL) { error = 0; if (ISSET(ifp_port->if_flags, IFF_RUNNING)) - error = ifp_port->if_init(ifp_port); + error = if_init(ifp_port); if (error != 0) { lagg_log(lp->lp_softc, LOG_WARNING, @@ -2161,7 +2161,7 @@ lagg_port_unsetsadl(struct lagg_port *lp) if (ifp_port->if_init != NULL) { error = 0; if (ISSET(ifp_port->if_flags, IFF_RUNNING)) - error = ifp_port->if_init(ifp_port); + error = if_init(ifp_port); if (error != 0) { lagg_log(lp->lp_softc, LOG_WARNING, @@ -2385,7 +2385,7 @@ lagg_port_setup(struct lagg_softc *sc, lagg_port_syncvlan(sc, lp); if (stopped) { - error = ifp_port->if_init(ifp_port); + error = if_init(ifp_port); if (error != 0) goto remove_port; } @@ -2415,7 +2415,7 @@ restore_ipv6lla: KASSERT(IFNET_LOCKED(ifp_port)); lagg_in6_ifdetach(ifp_port); if (stopped) { - if (ifp_port->if_init(ifp_port) != 0) { + if (if_init(ifp_port) != 0) { lagg_log(sc, LOG_WARNING, "couldn't re-start port %s\n", ifp_port->if_xname); @@ -2487,7 +2487,7 @@ lagg_port_teardown(struct lagg_softc *sc, struct lagg_port *lp, IFNET_UNLOCK(ifp_port); if (stopped) { - ifp_port->if_init(ifp_port); + if_init(ifp_port); } if (is_ifdetach == false) { diff --git a/sys/net/link_proto.c b/sys/net/link_proto.c index 2c4ecf621ba4..7c59daa8ba58 100644 --- a/sys/net/link_proto.c +++ b/sys/net/link_proto.c @@ -1,4 +1,4 @@ -/* $NetBSD: link_proto.c,v 1.39 2019/09/25 09:53:37 ozaki-r Exp $ */ +/* $NetBSD: link_proto.c,v 1.40 2021/12/31 14:25:24 riastradh Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.39 2019/09/25 09:53:37 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.40 2021/12/31 14:25:24 riastradh Exp $"); #include #include @@ -255,7 +255,7 @@ link_control(struct socket *so, unsigned long cmd, void *data, return error; else if ((ifp->if_flags & IFF_RUNNING) != 0 && ifp->if_init != NULL) - return (*ifp->if_init)(ifp); + return if_init(ifp); else return 0; default: