Module Name: src Committed By: msaitoh Date: Fri Feb 28 14:57:55 UTC 2020
Modified Files: src/sys/dev/pci: if_bnx.c Log Message: Replace bnx_ifmedia_upd() in bnx_init() with mii_ifmedia_change() for future locking changes. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/dev/pci/if_bnx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_bnx.c diff -u src/sys/dev/pci/if_bnx.c:1.93 src/sys/dev/pci/if_bnx.c:1.94 --- src/sys/dev/pci/if_bnx.c:1.93 Fri Feb 28 14:20:06 2020 +++ src/sys/dev/pci/if_bnx.c Fri Feb 28 14:57:55 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 msaitoh Exp $ */ +/* $NetBSD: if_bnx.c,v 1.94 2020/02/28 14:57:55 msaitoh Exp $ */ /* $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $ */ /*- @@ -35,7 +35,7 @@ #if 0 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $"); #endif -__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.94 2020/02/28 14:57:55 msaitoh Exp $"); /* * The following controllers are supported by this driver: @@ -5061,7 +5061,7 @@ bnx_init(struct ifnet *ifp) /* Enable host interrupts. */ bnx_enable_intr(sc); - bnx_ifmedia_upd(ifp); + mii_ifmedia_change(&sc->bnx_mii); SET(ifp->if_flags, IFF_RUNNING); CLR(ifp->if_flags, IFF_OACTIVE);