HomeFreeBSD

cxgbe(4): Do not read hardware registers to determine the number of ports.

Description

cxgbe(4): Do not read hardware registers to determine the number of ports.

PORTVEC obtained from the firmware is the authoritative source of this
information, and nports (calculated from PORTVEC) is available by the
time t4_port_init runs.

MFC after: 1 week
Sponsored by: Chelsio Communications

Details

Provenance
npAuthored on Apr 30 2024, 7:42 PM
Parents
rG13a5a46c49d0: Fix new users of MAXPHYS and hide it from the kernel namespace
Branches
Unknown
Tags
Unknown