Vport sysfs entries, Table 3-7 – Dell Emulex Family of Adapters User Manual
Page 860

Emulex Drivers Version 10.2 for Linux User Manual
P010081-01A Rev. A
3. Configuration
Virtual Port (VPort) Configuration
860
VPort sysfs Entries
Note: VPort sysfs entries in Table 3-7 are only present if the driver was loaded with
lpfc_enable_npiv enabled.
Table 3-7 VPort sysfs Entries
VPort sysfs
Entries
Type
Range
/Input
Location and Description
lpfc_peer_
port_login
Read/
Write
0=Off(default)
1=On
/sys/class/scsi_host/hostX/lpfc_peer_port_login
This entry sets the port’s behavior when discovering targets in
the SAN. The default behavior (value=0) will log in only to
N_Ports that are physically located on a different port. The
port will still attempt to log in to targets on all other ports
(including the other port in a dual-port adapter).
If this parameter is turned on (value=1), then the port
attempts to log in to all N_Ports, even if they are physically
located on the same port.
Note: This parameter was created to reduce the amount of
hardware resources (for example, RPIs) that the driver
requires. In a configuration where there are many VPorts
on one physical port, this capability greatly reduces the
number of RPIs that the driver uses.
lpfc_restrict_
login
Read/
Write
0=Off
1=On (default)
/sys/class/scsi_host/hostX/lpfc_restrict_login
(VPorts only)
This entry sets the VPort’s behavior when discovering targets in
the SAN. The default behavior (value=1) prevents the VPort
from logging into other initiator ports in the SAN. It also rejects
logins from other ports in the SAN, because it assumes that all
ports that send a PLOGI are initiators.
If this sysfs entry is turned off, the driver attempts to log in to
every port that it can access in the SAN, and accepts logins
from all ports.
Note: This parameter was created to reduce the amount of
hardware resources (for example, RPIs) that the driver
requires. In a SAN where there are other initiators, this
capability greatly reduces the number of RPIs that the
driver uses.
max_npiv_
vports
Read-
only
integers
/sys/class/fc_host/hostX/max_npiv_vports
This entry displays the maximum number of VPorts that are
supported by the fc_host’s underlying hardware.
This sysfs entry exists only if the vport_create and
vport_delete sysfs entries exist. If an fc_host does not support
NPIV, this sysfs entry may not exist.
Use this sysfs entry with the npiv_vports_inuse entry to
determine whether the maximum number of VPorts have been
created on this fc_host.