]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): separate sysctls for user-requested and in-use FEC.
authorNavdeep Parhar <np@FreeBSD.org>
Wed, 10 Nov 2021 18:54:53 +0000 (10:54 -0800)
committerNavdeep Parhar <np@FreeBSD.org>
Mon, 28 Feb 2022 06:43:59 +0000 (22:43 -0800)
commit512eb6235fcb2a3ef3a1b2ebaf4767aece54cdac
tree165bb38a2e7e5add832333f445cf9963779e4eaa
parent5f328e9e3f3fbe304153ca9bd93f9ea5ac4b94ae
cxgbe(4): separate sysctls for user-requested and in-use FEC.

Recent firmwares have more leeway in FEC selection and there is a need
to track the FECs requested by the driver separately from the FEC in use
on the link. The existing dev.<port>.<inst>.fec sysctl can read both but
its behavior depends on the link state and it is sometimes hard to find
out what was requested when the link is up.

Split the fec sysctl into two (requested_fec and link_fec) to get access
to both pieces of information regardless of the link state.

Sponsored by: Chelsio Communications

(cherry picked from commit f6a2e1100fa09742aa29d8e51fd6181fb5c171bb)
share/man/man4/cxgbe.4
sys/dev/cxgbe/t4_main.c