HomeFreeBSD

linuxkpi: Really check if PCI is offline

Description

linuxkpi: Really check if PCI is offline

Currently we always return false if for PCI offline query.
Try to read PCI config, if the return value if 0xffff probably the
PCI is offline.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341519: linuxkpi: properly implement netif_carrier_ok().
Branches
Unknown
Tags
Unknown