Date: Fri, 18 Nov 2016 21:18:51 +0000 (UTC) From: Stephen Hurd <shurd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308813 - head/sys/dev/bnxt Message-ID: <201611182118.uAILIpFJ088601@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611182118.uAILIpFJ088601>