Date: Thu, 31 Oct 2019 00:35:26 +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: r354210 - head/sys/dev/cxgbe/common Message-ID: <201910310035.x9V0ZQKe020184@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Thu Oct 31 00:35:26 2019 New Revision: 354210 URL: https://svnweb.freebsd.org/changeset/base/354210 Log: cxgbe(4): Use correct size while converting lpacaps32 to native endianness. 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 Wed Oct 30 21:49:34 2019 (r354209) +++ head/sys/dev/cxgbe/common/t4_hw.c Thu Oct 31 00:35:26 2019 (r354210) @@ -8548,7 +8548,7 @@ static void handle_port_info(struct port_info *pi, con lc->supported = be32_to_cpu(p->u.info32.pcaps32); lc->advertising = be32_to_cpu(p->u.info32.acaps32); - lc->lp_advertising = be16_to_cpu(p->u.info32.lpacaps32); + lc->lp_advertising = be32_to_cpu(p->u.info32.lpacaps32); lc->link_ok = (stat & F_FW_PORT_CMD_LSTATUS32) != 0; lc->link_down_rc = G_FW_PORT_CMD_LINKDNRC32(stat);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910310035.x9V0ZQKe020184>