Date: Mon, 12 Jun 2017 20:55:20 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r319872 - head/sys/dev/cxgbe/common Message-ID: <201706122055.v5CKtK9p088222@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Mon Jun 12 20:55:20 2017 New Revision: 319872 URL: https://svnweb.freebsd.org/changeset/base/319872 Log: cxgbe(4): Do not request an FEC setting that the port does not support. MFC after: 3 days. Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/common/t4_hw.c Modified: head/sys/dev/cxgbe/common/t4_hw.c ============================================================================== --- head/sys/dev/cxgbe/common/t4_hw.c Mon Jun 12 20:53:44 2017 (r319871) +++ head/sys/dev/cxgbe/common/t4_hw.c Mon Jun 12 20:55:20 2017 (r319872) @@ -7595,6 +7595,7 @@ static void init_link_config(struct link_config *lc, u fec |= FEC_BASER_RS; if (acaps & FW_PORT_CAP_FEC_RESERVED) fec |= FEC_RESERVED; + fec &= G_FW_PORT_CAP_FEC(lc->supported); lc->requested_fec = lc->fec = fec; if (lc->supported & FW_PORT_CAP_ANEG) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706122055.v5CKtK9p088222>