Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2019 15:47:22 +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: r344519 - head/sys/dev/cxgbe/common
Message-ID:  <201902251547.x1PFlMS1033658@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Mon Feb 25 15:47:22 2019
New Revision: 344519
URL: https://svnweb.freebsd.org/changeset/base/344519

Log:
  cxgbe(4): Use correct port_info in the call to is_bt().
  
  This fixes a panic during configuration if the tx channel of a port
  isn't the same as its port id.
  
  Reported by:	Fabrice Bruel
  MFC after:	1 week
  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 Feb 25 15:03:50 2019	(r344518)
+++ head/sys/dev/cxgbe/common/t4_hw.c	Mon Feb 25 15:47:22 2019	(r344519)
@@ -3894,7 +3894,7 @@ int t4_link_l1cfg(struct adapter *adap, unsigned int m
 		speed = fwcap_top_speed(lc->supported);
 
 	/* Force AN on for BT cards. */
-	if (is_bt(adap->port[port]))
+	if (is_bt(adap->port[adap->chan_map[port]]))
 		aneg = lc->supported & FW_PORT_CAP32_ANEG;
 
 	rcap = aneg | speed | fc | fec;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902251547.x1PFlMS1033658>