Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Configuring a Fibre Channel Virtual Function

At some point after an fibre channel PF driver has successfully attached and has enabled the required number of virtual functions, the IOV framework will issue a callback to the PF driver so that it can complete the configuration of a specified VF. In this callback, the action parameter is set to DDI_CB_PCIV_CLASS_CONFIG, the cbarg parameter points to a fciov_conf_t structure containing information about the VF, and the fc_cmd field of the fciov_conf_t structure is set to FCIOV_VF_CONFIG.

There is no guarantee of the timing or order in which this callback is received for a set of virtual functions associated with a PF. The IOV framework ensures that this callback is issued for a VF before it is made available for use. A callback to configure a fibre channel VF must have a valid node WWN and a valid port WWN. Thus, the fci_flags will always have FCIOV_NODE_WWN and FCIOV_PORT_WWN set. The bandwidth specification is optional. See, Bandwidth Configuration for Fibre Channel Virtual Functions for details on how to handle the case where the bandwidth is not specified for a configure operation.