aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2020-10-14 10:12:39 +0000
committerNavdeep Parhar <np@FreeBSD.org>2020-10-14 10:12:39 +0000
commit472d183268eb4ab581c55d8277ec6d84871c78a7 (patch)
tree650181dc0b9d4f2ae3e90440f7b41ee418e2fe8b
parent6952c3e1ac4a517308e746c90d840309f9fcf6ad (diff)
downloadsrc-472d183268eb4ab581c55d8277ec6d84871c78a7.tar.gz
src-472d183268eb4ab581c55d8277ec6d84871c78a7.zip
cxgbe(4): Do not request FEC when requesting speeds that don't have FEC.
MFC after: 1 week Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=366696
-rw-r--r--sys/dev/cxgbe/common/t4_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c
index 4c1dc8b6a213..79310e4a5794 100644
--- a/sys/dev/cxgbe/common/t4_hw.c
+++ b/sys/dev/cxgbe/common/t4_hw.c
@@ -3915,7 +3915,7 @@ int t4_link_l1cfg(struct adapter *adap, unsigned int mbox, unsigned int port,
speed = fwcap_top_speed(lc->pcaps);
fec = 0;
- if (fec_supported(lc->pcaps)) {
+ if (fec_supported(speed)) {
if (lc->requested_fec == FEC_AUTO) {
if (lc->pcaps & FW_PORT_CAP32_FORCE_FEC) {
if (speed & FW_PORT_CAP32_SPEED_100G) {