Author: shurd (ports committer) Date: Fri Nov 18 21:18:51 2016 New Revision: 308813 URL: https://svnweb.freebsd.org/changeset/base/308813
Log: Check link status after init Because link state change events aren't enabled until the end of init(), the initial link up event could be missed. Check the current media status immediately after enabling the default completion ring interrupt. Approved by: sbruno MFC after: 12 days Sponsored by: Broadcom Limited Modified: head/sys/dev/bnxt/if_bnxt.c Modified: head/sys/dev/bnxt/if_bnxt.c ============================================================================== --- head/sys/dev/bnxt/if_bnxt.c Fri Nov 18 21:12:36 2016 (r308812) +++ head/sys/dev/bnxt/if_bnxt.c Fri Nov 18 21:18:51 2016 (r308813) @@ -822,6 +822,7 @@ static void bnxt_init(if_ctx_t ctx) { struct bnxt_softc *softc = iflib_get_softc(ctx); + struct ifmediareq ifmr; int i, j; int rc; @@ -975,6 +976,7 @@ bnxt_init(if_ctx_t ctx) } bnxt_do_enable_intr(&softc->def_cp_ring); + bnxt_media_status(softc->ctx, &ifmr); return; fail: _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"