Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 20:30:11 +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: r325680 - head/sys/dev/cxgbe/common
Message-ID:  <201711102030.vAAKUBfN084645@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) |



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