Add support for media types from the extended ethernet capabilities fields.
authorjmatthew <jmatthew@openbsd.org>
Thu, 11 Apr 2024 05:30:55 +0000 (05:30 +0000)
committerjmatthew <jmatthew@openbsd.org>
Thu, 11 Apr 2024 05:30:55 +0000 (05:30 +0000)
commit748ce18c34badaa2d87dae60ca7a7925c545cf0a
treedfb301c4fa437b934b19fc1c73aa9cece496a38d
parent0fe191bfa9a408aff4162f47f33bc20579dd6c7d
Add support for media types from the extended ethernet capabilities fields.
If none of the regular ethernet capabilities are present, check the extended
capabilities.  Since we only report that the link is active if there's a
detected media type, this isn't just a cosmetic change.

Joerg Streckfuss reported that a gigabit SFP didn't work in a ConnectX-6 Lx,
and tested that this change makes it work.

ok dlg@
sys/dev/pci/if_mcx.c