Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2020 21:45:51 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r358969 - stable/12/sys/dev/cxgbe/common
Message-ID:  <202003132145.02DLjpfj000733@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Mar 13 21:45:51 2020
New Revision: 358969
URL: https://svnweb.freebsd.org/changeset/base/358969

Log:
  MFC r354210:
  
  cxgbe(4): Use correct size while converting lpacaps32 to native
  endianness.

Modified:
  stable/12/sys/dev/cxgbe/common/t4_hw.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/12/sys/dev/cxgbe/common/t4_hw.c	Fri Mar 13 20:59:02 2020	(r358968)
+++ stable/12/sys/dev/cxgbe/common/t4_hw.c	Fri Mar 13 21:45:51 2020	(r358969)
@@ -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?202003132145.02DLjpfj000733>