mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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:
parent
43f41dd393
commit
7127f6f455
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319872
@ -7595,6 +7595,7 @@ static void init_link_config(struct link_config *lc, unsigned int pcaps,
|
|||||||
fec |= FEC_BASER_RS;
|
fec |= FEC_BASER_RS;
|
||||||
if (acaps & FW_PORT_CAP_FEC_RESERVED)
|
if (acaps & FW_PORT_CAP_FEC_RESERVED)
|
||||||
fec |= FEC_RESERVED;
|
fec |= FEC_RESERVED;
|
||||||
|
fec &= G_FW_PORT_CAP_FEC(lc->supported);
|
||||||
lc->requested_fec = lc->fec = fec;
|
lc->requested_fec = lc->fec = fec;
|
||||||
|
|
||||||
if (lc->supported & FW_PORT_CAP_ANEG) {
|
if (lc->supported & FW_PORT_CAP_ANEG) {
|
||||||
|
Loading…
Reference in New Issue
Block a user