Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Configuring SR-IOV Fibre Channel Devices on SPARC Platforms

On SPARC platforms, fibre channel SR-IOV is configured using OVM Server for SPARC. Use the ldm list-io command to display the fibre channel SR-IOV physical functions. These devices are identified by the value of PF in the TYPE column. In the NAME column for fibre channel physical functions, the string includes IOVFC. To create a fibre channel VF, use the ldm create-vf command:

	ldm create-vf [port-wwn=<value> node-wwn=<value>]
	[bw_percent=[<value>]] <fc_pf_name>

The port-wwn and node-wwn arguments must both be present or both be omitted. If omitted, the Logical Domains Manager will generate valid values that do not collide with other existing WWN values. The format for these parameters are similar to the colon separated list of hex-bytes used for MAC addresses, but there must be 8 bytes rather than 6 bytes. If bw_percent is not specified, a value of 0 will be used. Valid values are 0-100. After the VF parameters are created, the ldm set-io command is used to modify them:

    ldm set-io [port-wwn=<value> node-wwn=<value>] 
    [bw-percent=<value>] <fc_vf_name>

The ldm destroy-vf command is used to destroy a VF:

ldm destroy-vf <vf_name>

More details on this an other commands used to work with fibre channel SR-IOV can be found in the Oracle VM Server for SPARC 3.1 Administration Guide.