cxgbe(4): Do not request an FEC setting that the port does not support.

MFC after:	3 days.
Sponsored by:	Chelsio Communications
This commit is contained in:
np 2017-06-12 20:55:20 +00:00
parent 7b6fe97487
commit 8f34063675

View File

@ -7595,6 +7595,7 @@ static void init_link_config(struct link_config *lc, unsigned int pcaps,
fec |= FEC_BASER_RS;
if (acaps & FW_PORT_CAP_FEC_RESERVED)
fec |= FEC_RESERVED;
fec &= G_FW_PORT_CAP_FEC(lc->supported);
lc->requested_fec = lc->fec = fec;
if (lc->supported & FW_PORT_CAP_ANEG) {