HomeFreeBSD

MFC r278239 and r278374.

Description

MFC r278239 and r278374.

r278239:
cxgbe(4): reserve id for iSCSI upper layer driver.

r278374:
cxgbe(4): tidy up some of the interaction between the Upper Layer
Drivers (ULDs) and the base if_cxgbe driver.

Track the per-adapter activation of ULDs in a new "active_ulds" field.
This was done pretty arbitrarily before this change -- via TOM_INIT_DONE
in adapter->flags for TOM, and the (1 << MAX_NPORTS) bit in
adapter->offload_map for iWARP.

iWARP and hw-accelerated iSCSI rely on the TOE (supported by the TOM
ULD). The rules are:
a) If the iWARP and/or iSCSI ULDs are available when TOE is enabled then

iWARP and/or iSCSI are enabled too.

b) When the iWARP and iSCSI modules are loaded they go looking for

adapters with TOE enabled and enable themselves on that adapter.

c) You cannot deactivate or unload the TOM module from underneath iWARP

or iSCSI.  Any such attempt will fail with EBUSY.

Details

Provenance
npAuthored on
Parents
rS284088: Change BUS_PROBE_HOOVER from -500 to -1000000. We have PCI bus drivers
Branches
Unknown
Tags
Unknown