Author: np
Date: Mon Jun 12 20:55:20 2017
New Revision: 319872
URL: https://svnweb.freebsd.org/changeset/base/319872

Log:
  cxgbe(4):  Do not request an FEC setting that the port does not support.
  
  MFC after:    3 days.
  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 Jun 12 20:53:44 2017        
(r319871)
+++ head/sys/dev/cxgbe/common/t4_hw.c   Mon Jun 12 20:55:20 2017        
(r319872)
@@ -7595,6 +7595,7 @@ static void init_link_config(struct link_config *lc, u
                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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to