svn commit: r354210 - head/sys/dev/cxgbe/common

Navdeep Parhar np at FreeBSD.org
Thu Oct 31 00:35:27 UTC 2019


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


More information about the svn-src-head mailing list