]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Handle FORCE_FEC in pcaps correctly.
authorNavdeep Parhar <np@FreeBSD.org>
Fri, 25 Mar 2022 07:34:54 +0000 (00:34 -0700)
committerNavdeep Parhar <np@FreeBSD.org>
Sat, 2 Apr 2022 01:49:43 +0000 (18:49 -0700)
commit8c711d0aa2d9d3369bb2cfdd5b7a27e2cd521ccc
tree9639872410a315f107b8b20f02217bfd206d2bb0
parent82386f825eb724b9369bf32d4a17976bcaf06e67
cxgbe(4): Handle FORCE_FEC in pcaps correctly.

The firmware doesn't report FORCE_FEC in pcaps if the transceiver
plugged in at that time does not support a speed that may use FEC.  It
is incorrect for the driver to assume that the FORCE_FEC value it read
during attach (in init_link_config) is permanent.  Instead, it should
check pcaps just before issuing the L1CFG command.

Sponsored by: Chelsio Communications

(cherry picked from commit 231f2112403229a1382be3f5f6ed50bffe3497e8)
sys/dev/cxgbe/common/t4_hw.c
sys/dev/cxgbe/t4_main.c