svn commit: r325680 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Fri Nov 10 20:30:12 UTC 2017
Author: np
Date: Fri Nov 10 20:30:10 2017
New Revision: 325680
URL: https://svnweb.freebsd.org/changeset/base/325680
Log:
cxgbe(4): Excluce mdi from the check against port capabilities.
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 Fri Nov 10 20:10:05 2017 (r325679)
+++ head/sys/dev/cxgbe/common/t4_hw.c Fri Nov 10 20:30:10 2017 (r325680)
@@ -3727,12 +3727,13 @@ int t4_link_l1cfg(struct adapter *adap, unsigned int m
V_FW_PORT_CAP_SPEED(M_FW_PORT_CAP_SPEED);
}
- rcap = aneg | speed | fc | fec | mdi;
+ rcap = aneg | speed | fc | fec;
if ((rcap | lc->supported) != lc->supported) {
CH_WARN(adap, "rcap 0x%08x, pcap 0x%08x\n", rcap,
lc->supported);
rcap &= lc->supported;
}
+ rcap |= mdi;
memset(&c, 0, sizeof(c));
c.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
More information about the svn-src-all
mailing list