Replace bnx_ifmedia_upd() in bnx_init() with mii_ifmedia_change() for future

locking changes.
This commit is contained in:
msaitoh 2020-02-28 14:57:55 +00:00
parent ebdef54f25
commit ca6a4f453f

View File

@ -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);