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.

Sponsored by: Chelsio Communications

(cherry picked from commit 4d1362cdc7375984a48f5f0048b1fe909524d21d)

Details

Provenance
npAuthored on Apr 30 2024, 7:42 PM
Parents
rGe5efc8cf5d7d: cxgbe(4): Allocate a taskqueue per port instead of per channel.
Branches
Unknown
Tags
Unknown