svn commit: r344519 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Mon Feb 25 15:47:23 UTC 2019
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;
More information about the svn-src-all
mailing list