tsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget*/translations/zh_CN/scsi/scsi_fc_transportmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_TW/scsi/scsi_fc_transportmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/it_IT/scsi/scsi_fc_transportmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ja_JP/scsi/scsi_fc_transportmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ko_KR/scsi/scsi_fc_transportmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/sp_SP/scsi/scsi_fc_transportmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhD/var/lib/git/docbuild/linux/Documentation/scsi/scsi_fc_transport.rsthKubhsection)}(hhh](htitle)}(hSCSI FC Transporth]hSCSI FC Transport}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hDate: 11/18/2008h]hDate: 11/18/2008}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hKernel Revisions for features::h]hKernel Revisions for features:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh literal_block)}(h=rports : <> vports : 2.6.22 bsg support : 2.6.30 (?TBD?)h]h=rports : <> vports : 2.6.22 bsg support : 2.6.30 (?TBD?)}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhK hhhhubh)}(hhh](h)}(h Introductionh]h Introduction}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hThis file documents the features and components of the SCSI FC Transport. It also provides documents the API between the transport and FC LLDDs.h]hThis file documents the features and components of the SCSI FC Transport. It also provides documents the API between the transport and FC LLDDs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h"The FC transport can be found at::h]h!The FC transport can be found at:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h{drivers/scsi/scsi_transport_fc.c include/scsi/scsi_transport_fc.h include/scsi/scsi_netlink_fc.h include/scsi/scsi_bsg_fc.hh]h{drivers/scsi/scsi_transport_fc.c include/scsi/scsi_transport_fc.h include/scsi/scsi_netlink_fc.h include/scsi/scsi_bsg_fc.h}hj$sbah}(h]h ]h"]h$]h&]hhuh1hhhhKhhhhubh)}(h>This file is found at Documentation/scsi/scsi_fc_transport.rsth]h>This file is found at Documentation/scsi/scsi_fc_transport.rst}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h] introductionah ]h"] introductionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hFC Remote Ports (rports)h]hFC Remote Ports (rports)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhhhhhK ubh block_quote)}(hXkIn the Fibre Channel (FC) subsystem, a remote port (rport) refers to a remote Fibre Channel node that the local port can communicate with. These are typically storage targets (e.g., arrays, tapes) that respond to SCSI commands over FC transport. In Linux, rports are managed by the FC transport class and are represented in sysfs under: /sys/class/fc_remote_ports/ Each rport directory contains attributes describing the remote port, such as port ID, node name, port state, and link speed. rports are typically created by the FC transport when a new device is discovered during a fabric login or scan, and they persist until the device is removed or the link is lost. Common attributes: - node_name: World Wide Node Name (WWNN). - port_name: World Wide Port Name (WWPN). - port_id: FC address of the remote port. - roles: Indicates if the port is an initiator, target, or both. - port_state: Shows the current operational state. After discovering a remote port, the driver typically populates a fc_rport_identifiers structure and invokes fc_remote_port_add() to create and register the remote port with the SCSI subsystem via the Fibre Channel (FC) transport class. rports are also visible via sysfs as children of the FC host adapter. For developers: use fc_remote_port_add() and fc_remote_port_delete() when implementing a driver that interacts with the FC transport class. h](h)}(hIn the Fibre Channel (FC) subsystem, a remote port (rport) refers to a remote Fibre Channel node that the local port can communicate with. These are typically storage targets (e.g., arrays, tapes) that respond to SCSI commands over FC transport.h]hIn the Fibre Channel (FC) subsystem, a remote port (rport) refers to a remote Fibre Channel node that the local port can communicate with. These are typically storage targets (e.g., arrays, tapes) that respond to SCSI commands over FC transport.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hj[ubh)}(hZIn Linux, rports are managed by the FC transport class and are represented in sysfs under:h]hZIn Linux, rports are managed by the FC transport class and are represented in sysfs under:}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj[ubjZ)}(h/sys/class/fc_remote_ports/ h]h)}(h/sys/class/fc_remote_ports/h]h/sys/class/fc_remote_ports/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hj{ubah}(h]h ]h"]h$]h&]uh1jYhhhK*hj[ubh)}(h|Each rport directory contains attributes describing the remote port, such as port ID, node name, port state, and link speed.h]h|Each rport directory contains attributes describing the remote port, such as port ID, node name, port state, and link speed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hj[ubh)}(hrports are typically created by the FC transport when a new device is discovered during a fabric login or scan, and they persist until the device is removed or the link is lost.h]hrports are typically created by the FC transport when a new device is discovered during a fabric login or scan, and they persist until the device is removed or the link is lost.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hj[ubh)}(hXCommon attributes: - node_name: World Wide Node Name (WWNN). - port_name: World Wide Port Name (WWPN). - port_id: FC address of the remote port. - roles: Indicates if the port is an initiator, target, or both. - port_state: Shows the current operational state.h]hXCommon attributes: - node_name: World Wide Node Name (WWNN). - port_name: World Wide Port Name (WWPN). - port_id: FC address of the remote port. - roles: Indicates if the port is an initiator, target, or both. - port_state: Shows the current operational state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hj[ubh)}(hAfter discovering a remote port, the driver typically populates a fc_rport_identifiers structure and invokes fc_remote_port_add() to create and register the remote port with the SCSI subsystem via the Fibre Channel (FC) transport class.h]hAfter discovering a remote port, the driver typically populates a fc_rport_identifiers structure and invokes fc_remote_port_add() to create and register the remote port with the SCSI subsystem via the Fibre Channel (FC) transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hj[ubh)}(hErports are also visible via sysfs as children of the FC host adapter.h]hErports are also visible via sysfs as children of the FC host adapter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hj[ubh)}(hFor developers: use fc_remote_port_add() and fc_remote_port_delete() when implementing a driver that interacts with the FC transport class.h]hFor developers: use fc_remote_port_add() and fc_remote_port_delete() when implementing a driver that interacts with the FC transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhj[ubeh}(h]h ]h"]h$]h&]uh1jYhhhK"hjHhhubeh}(h]fc-remote-ports-rportsah ]h"]fc remote ports (rports)ah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hFC Virtual Ports (vports)h]hFC Virtual Ports (vports)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKFubh)}(hhh](h)}(hOverviewh]hOverview}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKIubjZ)}(hX New FC standards have defined mechanisms which allows for a single physical port to appear on as multiple communication ports. Using the N_Port Id Virtualization (NPIV) mechanism, a point-to-point connection to a Fabric can be assigned more than 1 N_Port_ID. Each N_Port_ID appears as a separate port to other endpoints on the fabric, even though it shares one physical link to the switch for communication. Each N_Port_ID can have a unique view of the fabric based on fabric zoning and array lun-masking (just like a normal non-NPIV adapter). Using the Virtual Fabric (VF) mechanism, adding a fabric header to each frame allows the port to interact with the Fabric Port to join multiple fabrics. The port will obtain an N_Port_ID on each fabric it joins. Each fabric will have its own unique view of endpoints and configuration parameters. NPIV may be used together with VF so that the port can obtain multiple N_Port_IDs on each virtual fabric. The FC transport is now recognizing a new object - a vport. A vport is an entity that has a world-wide unique World Wide Port Name (wwpn) and World Wide Node Name (wwnn). The transport also allows for the FC4's to be specified for the vport, with FCP_Initiator being the primary role expected. Once instantiated by one of the above methods, it will have a distinct N_Port_ID and view of fabric endpoints and storage entities. The fc_host associated with the physical adapter will export the ability to create vports. The transport will create the vport object within the Linux device tree, and instruct the fc_host's driver to instantiate the virtual port. Typically, the driver will create a new scsi_host instance on the vport, resulting in a unique namespace for the vport. Thus, whether a FC port is based on a physical port or on a virtual port, each will appear as a unique scsi_host with its own target and lun space. .. Note:: At this time, the transport is written to create only NPIV-based vports. However, consideration was given to VF-based vports and it should be a minor change to add support if needed. The remaining discussion will concentrate on NPIV. .. Note:: World Wide Name assignment (and uniqueness guarantees) are left up to an administrative entity controlling the vport. For example, if vports are to be associated with virtual machines, a XEN mgmt utility would be responsible for creating wwpn/wwnn's for the vport, using its own naming authority and OUI. (Note: it already does this for virtual MAC addresses). h](h)}(hXNew FC standards have defined mechanisms which allows for a single physical port to appear on as multiple communication ports. Using the N_Port Id Virtualization (NPIV) mechanism, a point-to-point connection to a Fabric can be assigned more than 1 N_Port_ID. Each N_Port_ID appears as a separate port to other endpoints on the fabric, even though it shares one physical link to the switch for communication. Each N_Port_ID can have a unique view of the fabric based on fabric zoning and array lun-masking (just like a normal non-NPIV adapter). Using the Virtual Fabric (VF) mechanism, adding a fabric header to each frame allows the port to interact with the Fabric Port to join multiple fabrics. The port will obtain an N_Port_ID on each fabric it joins. Each fabric will have its own unique view of endpoints and configuration parameters. NPIV may be used together with VF so that the port can obtain multiple N_Port_IDs on each virtual fabric.h]hXNew FC standards have defined mechanisms which allows for a single physical port to appear on as multiple communication ports. Using the N_Port Id Virtualization (NPIV) mechanism, a point-to-point connection to a Fabric can be assigned more than 1 N_Port_ID. Each N_Port_ID appears as a separate port to other endpoints on the fabric, even though it shares one physical link to the switch for communication. Each N_Port_ID can have a unique view of the fabric based on fabric zoning and array lun-masking (just like a normal non-NPIV adapter). Using the Virtual Fabric (VF) mechanism, adding a fabric header to each frame allows the port to interact with the Fabric Port to join multiple fabrics. The port will obtain an N_Port_ID on each fabric it joins. Each fabric will have its own unique view of endpoints and configuration parameters. NPIV may be used together with VF so that the port can obtain multiple N_Port_IDs on each virtual fabric.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjubh)}(hXThe FC transport is now recognizing a new object - a vport. A vport is an entity that has a world-wide unique World Wide Port Name (wwpn) and World Wide Node Name (wwnn). The transport also allows for the FC4's to be specified for the vport, with FCP_Initiator being the primary role expected. Once instantiated by one of the above methods, it will have a distinct N_Port_ID and view of fabric endpoints and storage entities. The fc_host associated with the physical adapter will export the ability to create vports. The transport will create the vport object within the Linux device tree, and instruct the fc_host's driver to instantiate the virtual port. Typically, the driver will create a new scsi_host instance on the vport, resulting in a unique namespace for the vport. Thus, whether a FC port is based on a physical port or on a virtual port, each will appear as a unique scsi_host with its own target and lun space.h]hXThe FC transport is now recognizing a new object - a vport. A vport is an entity that has a world-wide unique World Wide Port Name (wwpn) and World Wide Node Name (wwnn). The transport also allows for the FC4’s to be specified for the vport, with FCP_Initiator being the primary role expected. Once instantiated by one of the above methods, it will have a distinct N_Port_ID and view of fabric endpoints and storage entities. The fc_host associated with the physical adapter will export the ability to create vports. The transport will create the vport object within the Linux device tree, and instruct the fc_host’s driver to instantiate the virtual port. Typically, the driver will create a new scsi_host instance on the vport, resulting in a unique namespace for the vport. Thus, whether a FC port is based on a physical port or on a virtual port, each will appear as a unique scsi_host with its own target and lun space.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjubhnote)}(hAt this time, the transport is written to create only NPIV-based vports. However, consideration was given to VF-based vports and it should be a minor change to add support if needed. The remaining discussion will concentrate on NPIV.h]h)}(hAt this time, the transport is written to create only NPIV-based vports. However, consideration was given to VF-based vports and it should be a minor change to add support if needed. The remaining discussion will concentrate on NPIV.h]hAt this time, the transport is written to create only NPIV-based vports. However, consideration was given to VF-based vports and it should be a minor change to add support if needed. The remaining discussion will concentrate on NPIV.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihj9ubah}(h]h ]h"]h$]h&]uh1j7hjubj8)}(hXhWorld Wide Name assignment (and uniqueness guarantees) are left up to an administrative entity controlling the vport. For example, if vports are to be associated with virtual machines, a XEN mgmt utility would be responsible for creating wwpn/wwnn's for the vport, using its own naming authority and OUI. (Note: it already does this for virtual MAC addresses).h]h)}(hXhWorld Wide Name assignment (and uniqueness guarantees) are left up to an administrative entity controlling the vport. For example, if vports are to be associated with virtual machines, a XEN mgmt utility would be responsible for creating wwpn/wwnn's for the vport, using its own naming authority and OUI. (Note: it already does this for virtual MAC addresses).h]hXjWorld Wide Name assignment (and uniqueness guarantees) are left up to an administrative entity controlling the vport. For example, if vports are to be associated with virtual machines, a XEN mgmt utility would be responsible for creating wwpn/wwnn’s for the vport, using its own naming authority and OUI. (Note: it already does this for virtual MAC addresses).}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKohjQubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jYhhhKKhjhhubeh}(h]overviewah ]h"]overviewah$]h&]uh1hhjhhhhhKIubh)}(hhh](h)}(hDevice Trees and Vport Objects:h]hDevice Trees and Vport Objects:}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhhhhhKxubjZ)}(hX_Today, the device tree typically contains the scsi_host object, with rports and scsi target objects underneath it. Currently the FC transport creates the vport object and places it under the scsi_host object corresponding to the physical adapter. The LLDD will allocate a new scsi_host for the vport and link its object under the vport. The remainder of the tree under the vports scsi_host is the same as the non-NPIV case. The transport is written currently to easily allow the parent of the vport to be something other than the scsi_host. This could be used in the future to link the object onto a vm-specific device tree. If the vport's parent is not the physical port's scsi_host, a symbolic link to the vport object will be placed in the physical port's scsi_host. Here's what to expect in the device tree : The typical Physical Port's Scsi_Host:: /sys/devices/.../host17/ and it has the typical descendant tree:: /sys/devices/.../host17/rport-17:0-0/target17:0:0/17:0:0:0: and then the vport is created on the Physical Port:: /sys/devices/.../host17/vport-17:0-0 and the vport's Scsi_Host is then created:: /sys/devices/.../host17/vport-17:0-0/host18 and then the rest of the tree progresses, such as:: /sys/devices/.../host17/vport-17:0-0/host18/rport-18:0-0/target18:0:0/18:0:0:0: Here's what to expect in the sysfs tree:: scsi_hosts: /sys/class/scsi_host/host17 physical port's scsi_host /sys/class/scsi_host/host18 vport's scsi_host fc_hosts: /sys/class/fc_host/host17 physical port's fc_host /sys/class/fc_host/host18 vport's fc_host fc_vports: /sys/class/fc_vports/vport-17:0-0 the vport's fc_vport fc_rports: /sys/class/fc_remote_ports/rport-17:0-0 rport on the physical port /sys/class/fc_remote_ports/rport-18:0-0 rport on the vport h](h)}(hXToday, the device tree typically contains the scsi_host object, with rports and scsi target objects underneath it. Currently the FC transport creates the vport object and places it under the scsi_host object corresponding to the physical adapter. The LLDD will allocate a new scsi_host for the vport and link its object under the vport. The remainder of the tree under the vports scsi_host is the same as the non-NPIV case. The transport is written currently to easily allow the parent of the vport to be something other than the scsi_host. This could be used in the future to link the object onto a vm-specific device tree. If the vport's parent is not the physical port's scsi_host, a symbolic link to the vport object will be placed in the physical port's scsi_host.h]hXToday, the device tree typically contains the scsi_host object, with rports and scsi target objects underneath it. Currently the FC transport creates the vport object and places it under the scsi_host object corresponding to the physical adapter. The LLDD will allocate a new scsi_host for the vport and link its object under the vport. The remainder of the tree under the vports scsi_host is the same as the non-NPIV case. The transport is written currently to easily allow the parent of the vport to be something other than the scsi_host. This could be used in the future to link the object onto a vm-specific device tree. If the vport’s parent is not the physical port’s scsi_host, a symbolic link to the vport object will be placed in the physical port’s scsi_host.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubh)}(h*Here's what to expect in the device tree :h]h,Here’s what to expect in the device tree :}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjZ)}(hXThe typical Physical Port's Scsi_Host:: /sys/devices/.../host17/ and it has the typical descendant tree:: /sys/devices/.../host17/rport-17:0-0/target17:0:0/17:0:0:0: and then the vport is created on the Physical Port:: /sys/devices/.../host17/vport-17:0-0 and the vport's Scsi_Host is then created:: /sys/devices/.../host17/vport-17:0-0/host18 and then the rest of the tree progresses, such as:: /sys/devices/.../host17/vport-17:0-0/host18/rport-18:0-0/target18:0:0/18:0:0:0: h](h)}(h'The typical Physical Port's Scsi_Host::h]h(The typical Physical Port’s Scsi_Host:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h/sys/devices/.../host17/h]h/sys/devices/.../host17/}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubh)}(h(and it has the typical descendant tree::h]h'and it has the typical descendant tree:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h;/sys/devices/.../host17/rport-17:0-0/target17:0:0/17:0:0:0:h]h;/sys/devices/.../host17/rport-17:0-0/target17:0:0/17:0:0:0:}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubh)}(h4and then the vport is created on the Physical Port::h]h3and then the vport is created on the Physical Port:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h$/sys/devices/.../host17/vport-17:0-0h]h$/sys/devices/.../host17/vport-17:0-0}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubh)}(h+and the vport's Scsi_Host is then created::h]h,and the vport’s Scsi_Host is then created:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h+/sys/devices/.../host17/vport-17:0-0/host18h]h+/sys/devices/.../host17/vport-17:0-0/host18}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubh)}(h3and then the rest of the tree progresses, such as::h]h2and then the rest of the tree progresses, such as:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hO/sys/devices/.../host17/vport-17:0-0/host18/rport-18:0-0/target18:0:0/18:0:0:0:h]hO/sys/devices/.../host17/vport-17:0-0/host18/rport-18:0-0/target18:0:0/18:0:0:0:}hj*sbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1jYhhhKhjubh)}(h)Here's what to expect in the sysfs tree::h]h*Here’s what to expect in the sysfs tree:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hXscsi_hosts: /sys/class/scsi_host/host17 physical port's scsi_host /sys/class/scsi_host/host18 vport's scsi_host fc_hosts: /sys/class/fc_host/host17 physical port's fc_host /sys/class/fc_host/host18 vport's fc_host fc_vports: /sys/class/fc_vports/vport-17:0-0 the vport's fc_vport fc_rports: /sys/class/fc_remote_ports/rport-17:0-0 rport on the physical port /sys/class/fc_remote_ports/rport-18:0-0 rport on the vporth]hXscsi_hosts: /sys/class/scsi_host/host17 physical port's scsi_host /sys/class/scsi_host/host18 vport's scsi_host fc_hosts: /sys/class/fc_host/host17 physical port's fc_host /sys/class/fc_host/host18 vport's fc_host fc_vports: /sys/class/fc_vports/vport-17:0-0 the vport's fc_vport fc_rports: /sys/class/fc_remote_ports/rport-17:0-0 rport on the physical port /sys/class/fc_remote_ports/rport-18:0-0 rport on the vport}hjLsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1jYhhhKzhjwhhubeh}(h]device-trees-and-vport-objectsah ]h"]device trees and vport objects:ah$]h&]uh1hhjhhhhhKxubh)}(hhh](h)}(hVport Attributesh]hVport Attributes}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhhKubjZ)}(hX The new fc_vport class object has the following attributes node_name: Read_Only The WWNN of the vport port_name: Read_Only The WWPN of the vport roles: Read_Only Indicates the FC4 roles enabled on the vport. symbolic_name: Read_Write A string, appended to the driver's symbolic port name string, which is registered with the switch to identify the vport. For example, a hypervisor could set this string to "Xen Domain 2 VM 5 Vport 2", and this set of identifiers can be seen on switch management screens to identify the port. vport_delete: Write_Only When written with a "1", will tear down the vport. vport_disable: Write_Only When written with a "1", will transition the vport to a disabled. state. The vport will still be instantiated with the Linux kernel, but it will not be active on the FC link. When written with a "0", will enable the vport. vport_last_state: Read_Only Indicates the previous state of the vport. See the section below on "Vport States". vport_state: Read_Only Indicates the state of the vport. See the section below on "Vport States". vport_type: Read_Only Reflects the FC mechanism used to create the virtual port. Only NPIV is supported currently. For the fc_host class object, the following attributes are added for vports: max_npiv_vports: Read_Only Indicates the maximum number of NPIV-based vports that the driver/adapter can support on the fc_host. npiv_vports_inuse: Read_Only Indicates how many NPIV-based vports have been instantiated on the fc_host. vport_create: Write_Only A "simple" create interface to instantiate a vport on an fc_host. A ":" string is written to the attribute. The transport then instantiates the vport object and calls the LLDD to create the vport with the role of FCP_Initiator. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). vport_delete: Write_Only A "simple" delete interface to teardown a vport. A ":" string is written to the attribute. The transport will locate the vport on the fc_host with the same WWNs and tear it down. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). h](h)}(h:The new fc_vport class object has the following attributesh]h:The new fc_vport class object has the following attributes}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjyubjZ)}(hX.node_name: Read_Only The WWNN of the vport port_name: Read_Only The WWPN of the vport roles: Read_Only Indicates the FC4 roles enabled on the vport. symbolic_name: Read_Write A string, appended to the driver's symbolic port name string, which is registered with the switch to identify the vport. For example, a hypervisor could set this string to "Xen Domain 2 VM 5 Vport 2", and this set of identifiers can be seen on switch management screens to identify the port. vport_delete: Write_Only When written with a "1", will tear down the vport. vport_disable: Write_Only When written with a "1", will transition the vport to a disabled. state. The vport will still be instantiated with the Linux kernel, but it will not be active on the FC link. When written with a "0", will enable the vport. vport_last_state: Read_Only Indicates the previous state of the vport. See the section below on "Vport States". vport_state: Read_Only Indicates the state of the vport. See the section below on "Vport States". vport_type: Read_Only Reflects the FC mechanism used to create the virtual port. Only NPIV is supported currently. h]hdefinition_list)}(hhh](hdefinition_list_item)}(h[node_name: Read_Only The WWNN of the vport h](hterm)}(hDnode_name: Read_Onlyh]hDnode_name: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(hThe WWNN of the vporth]hThe WWNN of the vport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h[port_name: Read_Only The WWPN of the vport h](j)}(hDport_name: Read_Onlyh]hDport_name: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hThe WWPN of the vporth]hThe WWPN of the vport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hsroles: Read_Only Indicates the FC4 roles enabled on the vport. h](j)}(hDroles: Read_Onlyh]hDroles: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(h-Indicates the FC4 roles enabled on the vport.h]h-Indicates the FC4 roles enabled on the vport.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hXjsymbolic_name: Read_Write A string, appended to the driver's symbolic port name string, which is registered with the switch to identify the vport. For example, a hypervisor could set this string to "Xen Domain 2 VM 5 Vport 2", and this set of identifiers can be seen on switch management screens to identify the port. h](j)}(hEsymbolic_name: Read_Writeh]hEsymbolic_name: Read_Write}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj'ubj)}(hhh]h)}(hX#A string, appended to the driver's symbolic port name string, which is registered with the switch to identify the vport. For example, a hypervisor could set this string to "Xen Domain 2 VM 5 Vport 2", and this set of identifiers can be seen on switch management screens to identify the port.h]hX)A string, appended to the driver’s symbolic port name string, which is registered with the switch to identify the vport. For example, a hypervisor could set this string to “Xen Domain 2 VM 5 Vport 2”, and this set of identifiers can be seen on switch management screens to identify the port.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hyvport_delete: Write_Only When written with a "1", will tear down the vport. h](j)}(hEvport_delete: Write_Onlyh]hEvport_delete: Write_Only}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjVubj)}(hhh]h)}(h2When written with a "1", will tear down the vport.h]h6When written with a “1”, will tear down the vport.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hX&vport_disable: Write_Only When written with a "1", will transition the vport to a disabled. state. The vport will still be instantiated with the Linux kernel, but it will not be active on the FC link. When written with a "0", will enable the vport. h](j)}(hEvport_disable: Write_Onlyh]hEvport_disable: Write_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hWhen written with a "1", will transition the vport to a disabled. state. The vport will still be instantiated with the Linux kernel, but it will not be active on the FC link. When written with a "0", will enable the vport.h]hWhen written with a “1”, will transition the vport to a disabled. state. The vport will still be instantiated with the Linux kernel, but it will not be active on the FC link. When written with a “0”, will enable the vport.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hvport_last_state: Read_Only Indicates the previous state of the vport. See the section below on "Vport States". h](j)}(hDvport_last_state: Read_Onlyh]hDvport_last_state: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hTIndicates the previous state of the vport. See the section below on "Vport States".h]hXIndicates the previous state of the vport. See the section below on “Vport States”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hvport_state: Read_Only Indicates the state of the vport. See the section below on "Vport States". h](j)}(hDvport_state: Read_Onlyh]hDvport_state: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hKIndicates the state of the vport. See the section below on "Vport States".h]hOIndicates the state of the vport. See the section below on “Vport States”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hvport_type: Read_Only Reflects the FC mechanism used to create the virtual port. Only NPIV is supported currently. h](j)}(hDvport_type: Read_Onlyh]hDvport_type: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(h\Reflects the FC mechanism used to create the virtual port. Only NPIV is supported currently.h]h\Reflects the FC mechanism used to create the virtual port. Only NPIV is supported currently.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jYhhhKhjyubh)}(hLFor the fc_host class object, the following attributes are added for vports:h]hLFor the fc_host class object, the following attributes are added for vports:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjyubjZ)}(hX`max_npiv_vports: Read_Only Indicates the maximum number of NPIV-based vports that the driver/adapter can support on the fc_host. npiv_vports_inuse: Read_Only Indicates how many NPIV-based vports have been instantiated on the fc_host. vport_create: Write_Only A "simple" create interface to instantiate a vport on an fc_host. A ":" string is written to the attribute. The transport then instantiates the vport object and calls the LLDD to create the vport with the role of FCP_Initiator. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). vport_delete: Write_Only A "simple" delete interface to teardown a vport. A ":" string is written to the attribute. The transport will locate the vport on the fc_host with the same WWNs and tear it down. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). h]j)}(hhh](j)}(hmax_npiv_vports: Read_Only Indicates the maximum number of NPIV-based vports that the driver/adapter can support on the fc_host. h](j)}(hDmax_npiv_vports: Read_Onlyh]hDmax_npiv_vports: Read_Only}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjbubj)}(hhh]h)}(heIndicates the maximum number of NPIV-based vports that the driver/adapter can support on the fc_host.h]heIndicates the maximum number of NPIV-based vports that the driver/adapter can support on the fc_host.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhhhKhj_ubj)}(hnpiv_vports_inuse: Read_Only Indicates how many NPIV-based vports have been instantiated on the fc_host. h](j)}(hDnpiv_vports_inuse: Read_Onlyh]hDnpiv_vports_inuse: Read_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hKIndicates how many NPIV-based vports have been instantiated on the fc_host.h]hKIndicates how many NPIV-based vports have been instantiated on the fc_host.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhj_ubj)}(hXvport_create: Write_Only A "simple" create interface to instantiate a vport on an fc_host. A ":" string is written to the attribute. The transport then instantiates the vport object and calls the LLDD to create the vport with the role of FCP_Initiator. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). h](j)}(hEvport_create: Write_Onlyh]hEvport_create: Write_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hXQA "simple" create interface to instantiate a vport on an fc_host. A ":" string is written to the attribute. The transport then instantiates the vport object and calls the LLDD to create the vport with the role of FCP_Initiator. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc).h](hX,A “simple” create interface to instantiate a vport on an fc_host. A “:” string is written to the attribute. The transport then instantiates the vport object and calls the LLDD to create the vport with the role of FCP_Initiator. Each WWN is specified as 16 hex characters and may }(hjhhhNhNubhemphasis)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( contain any prefixes (e.g. 0x, x, etc).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhj_ubj)}(hXhvport_delete: Write_Only A "simple" delete interface to teardown a vport. A ":" string is written to the attribute. The transport will locate the vport on the fc_host with the same WWNs and tear it down. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc). h](j)}(hEvport_delete: Write_Onlyh]hEvport_delete: Write_Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hX A "simple" delete interface to teardown a vport. A ":" string is written to the attribute. The transport will locate the vport on the fc_host with the same WWNs and tear it down. Each WWN is specified as 16 hex characters and may *not* contain any prefixes (e.g. 0x, x, etc).h](hA “simple” delete interface to teardown a vport. A “:” string is written to the attribute. The transport will locate the vport on the fc_host with the same WWNs and tear it down. Each WWN is specified as 16 hex characters and may }(hjhhhNhNubj)}(h*not*h]hnot}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( contain any prefixes (e.g. 0x, x, etc).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhj_ubeh}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jYhhhKhjyubeh}(h]h ]h"]h$]h&]uh1jYhhhKhjhhhubeh}(h]vport-attributesah ]h"]vport attributesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h Vport Statesh]h Vport States}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhKubjZ)}(hXVport instantiation consists of two parts: - Creation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state. - Instantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. Further information can be found in the interfaces section below for Vport Creation. Once a vport has been instantiated with the kernel/LLDD, a vport state can be reported via the sysfs attribute. The following states exist: FC_VPORT_UNKNOWN - Unknown An temporary state, typically set only while the vport is being instantiated with the kernel and LLDD. FC_VPORT_ACTIVE - Active The vport has been successfully been created on the FC link. It is fully functional. FC_VPORT_DISABLED - Disabled The vport instantiated, but "disabled". The vport is not instantiated on the FC link. This is equivalent to a physical port with the link "down". FC_VPORT_LINKDOWN - Linkdown The vport is not operational as the physical link is not operational. FC_VPORT_INITIALIZING - Initializing The vport is in the process of instantiating on the FC link. The LLDD will set this state just prior to starting the ELS traffic to create the vport. This state will persist until the vport is successfully created (state becomes FC_VPORT_ACTIVE) or it fails (state is one of the values below). As this state is transitory, it will not be preserved in the "vport_last_state". FC_VPORT_NO_FABRIC_SUPP - No Fabric Support The vport is not operational. One of the following conditions were encountered: - The FC topology is not Point-to-Point - The FC port is not connected to an F_Port - The F_Port has indicated that NPIV is not supported. FC_VPORT_NO_FABRIC_RSCS - No Fabric Resources The vport is not operational. The Fabric failed FDISC with a status indicating that it does not have sufficient resources to complete the operation. FC_VPORT_FABRIC_LOGOUT - Fabric Logout The vport is not operational. The Fabric has LOGO'd the N_Port_ID associated with the vport. FC_VPORT_FABRIC_REJ_WWN - Fabric Rejected WWN The vport is not operational. The Fabric failed FDISC with a status indicating that the WWN's are not valid. FC_VPORT_FAILED - VPort Failed The vport is not operational. This is a catchall for all other error conditions. The following state table indicates the different state transitions: +------------------+--------------------------------+---------------------+ | State | Event | New State | +==================+================================+=====================+ | n/a | Initialization | Unknown | +------------------+--------------------------------+---------------------+ | Unknown: | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Link Up & Loop | No Fabric Support | | +--------------------------------+---------------------+ | | Link Up & no Fabric | No Fabric Support | | +--------------------------------+---------------------+ | | Link Up & FLOGI response | No Fabric Support | | | indicates no NPIV support | | | +--------------------------------+---------------------+ | | Link Up & FDISC being sent | Initializing | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Linkdown: | Link Up | Unknown | +------------------+--------------------------------+---------------------+ | Initializing: | FDISC ACC | Active | | +--------------------------------+---------------------+ | | FDISC LS_RJT w/ no resources | No Fabric Resources | | +--------------------------------+---------------------+ | | FDISC LS_RJT w/ invalid | Fabric Rejected WWN | | | pname or invalid nport_id | | | +--------------------------------+---------------------+ | | FDISC LS_RJT failed for | Vport Failed | | | other reasons | | | +--------------------------------+---------------------+ | | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Disable: | Enable request | Unknown | +------------------+--------------------------------+---------------------+ | Active: | LOGO received from fabric | Fabric Logout | | +--------------------------------+---------------------+ | | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Fabric Logout: | Link still up | Unknown | +------------------+--------------------------------+---------------------+ h](h)}(h*Vport instantiation consists of two parts:h]h*Vport instantiation consists of two parts:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubjZ)}(hX|- Creation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state. - Instantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. h]h bullet_list)}(hhh](h list_item)}(hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state.h]h)}(hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state.h]hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver “attach” on an adapter, which is independent of the adapter’s link state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. h]h)}(hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization.h]hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a “link up” and successful link initialization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jYhhhKhjoubh)}(hTFurther information can be found in the interfaces section below for Vport Creation.h]hTFurther information can be found in the interfaces section below for Vport Creation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubh)}(hOnce a vport has been instantiated with the kernel/LLDD, a vport state can be reported via the sysfs attribute. The following states exist:h]hOnce a vport has been instantiated with the kernel/LLDD, a vport state can be reported via the sysfs attribute. The following states exist:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubjZ)}(hXFC_VPORT_UNKNOWN - Unknown An temporary state, typically set only while the vport is being instantiated with the kernel and LLDD. FC_VPORT_ACTIVE - Active The vport has been successfully been created on the FC link. It is fully functional. FC_VPORT_DISABLED - Disabled The vport instantiated, but "disabled". The vport is not instantiated on the FC link. This is equivalent to a physical port with the link "down". FC_VPORT_LINKDOWN - Linkdown The vport is not operational as the physical link is not operational. FC_VPORT_INITIALIZING - Initializing The vport is in the process of instantiating on the FC link. The LLDD will set this state just prior to starting the ELS traffic to create the vport. This state will persist until the vport is successfully created (state becomes FC_VPORT_ACTIVE) or it fails (state is one of the values below). As this state is transitory, it will not be preserved in the "vport_last_state". FC_VPORT_NO_FABRIC_SUPP - No Fabric Support The vport is not operational. One of the following conditions were encountered: - The FC topology is not Point-to-Point - The FC port is not connected to an F_Port - The F_Port has indicated that NPIV is not supported. FC_VPORT_NO_FABRIC_RSCS - No Fabric Resources The vport is not operational. The Fabric failed FDISC with a status indicating that it does not have sufficient resources to complete the operation. FC_VPORT_FABRIC_LOGOUT - Fabric Logout The vport is not operational. The Fabric has LOGO'd the N_Port_ID associated with the vport. FC_VPORT_FABRIC_REJ_WWN - Fabric Rejected WWN The vport is not operational. The Fabric failed FDISC with a status indicating that the WWN's are not valid. FC_VPORT_FAILED - VPort Failed The vport is not operational. This is a catchall for all other error conditions. h]j)}(hhh](j)}(hFC_VPORT_UNKNOWN - Unknown An temporary state, typically set only while the vport is being instantiated with the kernel and LLDD. h](j)}(h%FC_VPORT_UNKNOWN - Unknownh]h%FC_VPORT_UNKNOWN - Unknown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hfAn temporary state, typically set only while the vport is being instantiated with the kernel and LLDD.h]hfAn temporary state, typically set only while the vport is being instantiated with the kernel and LLDD.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hzFC_VPORT_ACTIVE - Active The vport has been successfully been created on the FC link. It is fully functional. h](j)}(h$FC_VPORT_ACTIVE - Activeh]h$FC_VPORT_ACTIVE - Active}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hTThe vport has been successfully been created on the FC link. It is fully functional.h]hTThe vport has been successfully been created on the FC link. It is fully functional.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hFC_VPORT_DISABLED - Disabled The vport instantiated, but "disabled". The vport is not instantiated on the FC link. This is equivalent to a physical port with the link "down". h](j)}(h&FC_VPORT_DISABLED - Disabledh]h&FC_VPORT_DISABLED - Disabled}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjKubj)}(hhh]h)}(hThe vport instantiated, but "disabled". The vport is not instantiated on the FC link. This is equivalent to a physical port with the link "down".h]hThe vport instantiated, but “disabled”. The vport is not instantiated on the FC link. This is equivalent to a physical port with the link “down”.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj]ubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhhhM hjubj)}(hmFC_VPORT_LINKDOWN - Linkdown The vport is not operational as the physical link is not operational. h](j)}(h&FC_VPORT_LINKDOWN - Linkdownh]h&FC_VPORT_LINKDOWN - Linkdown}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjzubj)}(hhh]h)}(hEThe vport is not operational as the physical link is not operational.h]hEThe vport is not operational as the physical link is not operational.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXFC_VPORT_INITIALIZING - Initializing The vport is in the process of instantiating on the FC link. The LLDD will set this state just prior to starting the ELS traffic to create the vport. This state will persist until the vport is successfully created (state becomes FC_VPORT_ACTIVE) or it fails (state is one of the values below). As this state is transitory, it will not be preserved in the "vport_last_state". h](j)}(h*FC_VPORT_INITIALIZING - Initializingh]h*FC_VPORT_INITIALIZING - Initializing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hXwThe vport is in the process of instantiating on the FC link. The LLDD will set this state just prior to starting the ELS traffic to create the vport. This state will persist until the vport is successfully created (state becomes FC_VPORT_ACTIVE) or it fails (state is one of the values below). As this state is transitory, it will not be preserved in the "vport_last_state".h]hX{The vport is in the process of instantiating on the FC link. The LLDD will set this state just prior to starting the ELS traffic to create the vport. This state will persist until the vport is successfully created (state becomes FC_VPORT_ACTIVE) or it fails (state is one of the values below). As this state is transitory, it will not be preserved in the “vport_last_state”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXFC_VPORT_NO_FABRIC_SUPP - No Fabric Support The vport is not operational. One of the following conditions were encountered: - The FC topology is not Point-to-Point - The FC port is not connected to an F_Port - The F_Port has indicated that NPIV is not supported. h](j)}(h/FC_VPORT_NO_FABRIC_SUPP - No Fabric Supporth]h/FC_VPORT_NO_FABRIC_SUPP - No Fabric Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjubj)}(hhh](h)}(hOThe vport is not operational. One of the following conditions were encountered:h]hOThe vport is not operational. One of the following conditions were encountered:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(h- The FC topology is not Point-to-Point - The FC port is not connected to an F_Port - The F_Port has indicated that NPIV is not supported. h]j)}(hhh](j)}(h%The FC topology is not Point-to-Pointh]h)}(hjh]h%The FC topology is not Point-to-Point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h)The FC port is not connected to an F_Porth]h)}(hjh]h)The FC port is not connected to an F_Port}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5The F_Port has indicated that NPIV is not supported. h]h)}(h4The F_Port has indicated that NPIV is not supported.h]h4The F_Port has indicated that NPIV is not supported.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM hjubj)}(hFC_VPORT_NO_FABRIC_RSCS - No Fabric Resources The vport is not operational. The Fabric failed FDISC with a status indicating that it does not have sufficient resources to complete the operation. h](j)}(h1FC_VPORT_NO_FABRIC_RSCS - No Fabric Resourcesh]h1FC_VPORT_NO_FABRIC_RSCS - No Fabric Resources}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM%hj`ubj)}(hhh]h)}(hThe vport is not operational. The Fabric failed FDISC with a status indicating that it does not have sufficient resources to complete the operation.h]hThe vport is not operational. The Fabric failed FDISC with a status indicating that it does not have sufficient resources to complete the operation.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjrubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhhhM%hjubj)}(hFC_VPORT_FABRIC_LOGOUT - Fabric Logout The vport is not operational. The Fabric has LOGO'd the N_Port_ID associated with the vport. h](j)}(h+FC_VPORT_FABRIC_LOGOUT - Fabric Logouth]h+FC_VPORT_FABRIC_LOGOUT - Fabric Logout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjubj)}(hhh]h)}(h\The vport is not operational. The Fabric has LOGO'd the N_Port_ID associated with the vport.h]h^The vport is not operational. The Fabric has LOGO’d the N_Port_ID associated with the vport.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM)hjubj)}(hFC_VPORT_FABRIC_REJ_WWN - Fabric Rejected WWN The vport is not operational. The Fabric failed FDISC with a status indicating that the WWN's are not valid. h](j)}(h1FC_VPORT_FABRIC_REJ_WWN - Fabric Rejected WWNh]h1FC_VPORT_FABRIC_REJ_WWN - Fabric Rejected WWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM-hjubj)}(hhh]h)}(hlThe vport is not operational. The Fabric failed FDISC with a status indicating that the WWN's are not valid.h]hnThe vport is not operational. The Fabric failed FDISC with a status indicating that the WWN’s are not valid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM-hjubj)}(h}FC_VPORT_FAILED - VPort Failed The vport is not operational. This is a catchall for all other error conditions. h](j)}(h*FC_VPORT_FAILED - VPort Failedh]h*FC_VPORT_FAILED - VPort Failed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hjubj)}(hhh]h)}(hPThe vport is not operational. This is a catchall for all other error conditions.h]hPThe vport is not operational. This is a catchall for all other error conditions.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjoubh)}(hDThe following state table indicates the different state transitions:h]hDThe following state table indicates the different state transitions:}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM4hjoubjZ)}(hX +------------------+--------------------------------+---------------------+ | State | Event | New State | +==================+================================+=====================+ | n/a | Initialization | Unknown | +------------------+--------------------------------+---------------------+ | Unknown: | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Link Up & Loop | No Fabric Support | | +--------------------------------+---------------------+ | | Link Up & no Fabric | No Fabric Support | | +--------------------------------+---------------------+ | | Link Up & FLOGI response | No Fabric Support | | | indicates no NPIV support | | | +--------------------------------+---------------------+ | | Link Up & FDISC being sent | Initializing | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Linkdown: | Link Up | Unknown | +------------------+--------------------------------+---------------------+ | Initializing: | FDISC ACC | Active | | +--------------------------------+---------------------+ | | FDISC LS_RJT w/ no resources | No Fabric Resources | | +--------------------------------+---------------------+ | | FDISC LS_RJT w/ invalid | Fabric Rejected WWN | | | pname or invalid nport_id | | | +--------------------------------+---------------------+ | | FDISC LS_RJT failed for | Vport Failed | | | other reasons | | | +--------------------------------+---------------------+ | | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Disable: | Enable request | Unknown | +------------------+--------------------------------+---------------------+ | Active: | LOGO received from fabric | Fabric Logout | | +--------------------------------+---------------------+ | | Link Down | Linkdown | | +--------------------------------+---------------------+ | | Disable request | Disable | +------------------+--------------------------------+---------------------+ | Fabric Logout: | Link still up | Unknown | +------------------+--------------------------------+---------------------+ h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hjA ubjE )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jD hjA ubjE )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hjA ubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]h)}(hStateh]hState}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hjp ubah}(h]h ]h"]h$]h&]uh1jn hjk ubjo )}(hhh]h)}(hEventh]hEvent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj ubah}(h]h ]h"]h$]h&]uh1jn hjk ubjo )}(hhh]h)}(h New Stateh]h New State}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj ubah}(h]h ]h"]h$]h&]uh1jn hjk ubeh}(h]h ]h"]h$]h&]uh1ji hjf ubah}(h]h ]h"]h$]h&]uh1jd hjA ubhtbody)}(hhh](jj )}(hhh](jo )}(hhh]h)}(hn/ah]hn/a}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hInitializationh]hInitialization}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hUnknownh]hUnknown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hUnknown:h]hUnknown:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj ubah}(h]h ]h"]h$]h&]morerowsKuh1jn hj ubjo )}(hhh]h)}(h Link Downh]h Link Down}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj/ ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hLinkdownh]hLinkdown}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjF ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hLink Up & Looph]hLink Up & Loop}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hjf ubah}(h]h ]h"]h$]h&]uh1jn hjc ubjo )}(hhh]h)}(hNo Fabric Supporth]hNo Fabric Support}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hj} ubah}(h]h ]h"]h$]h&]uh1jn hjc ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hLink Up & no Fabrich]hLink Up & no Fabric}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hNo Fabric Supporth]hNo Fabric Support}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h2Link Up & FLOGI response indicates no NPIV supporth]h2Link Up & FLOGI response indicates no NPIV support}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hNo Fabric Supporth]hNo Fabric Support}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hLink Up & FDISC being senth]hLink Up & FDISC being sent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(h Initializingh]h Initializing}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj" ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hDisable requesth]hDisable request}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjB ubah}(h]h ]h"]h$]h&]uh1jn hj? ubjo )}(hhh]h)}(hDisableh]hDisable}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjY ubah}(h]h ]h"]h$]h&]uh1jn hj? ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h Linkdown:h]h Linkdown:}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjy ubah}(h]h ]h"]h$]h&]uh1jn hjv ubjo )}(hhh]h)}(hLink Uph]hLink Up}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj ubah}(h]h ]h"]h$]h&]uh1jn hjv ubjo )}(hhh]h)}(hUnknownh]hUnknown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj ubah}(h]h ]h"]h$]h&]uh1jn hjv ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h Initializing:h]h Initializing:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhj ubah}(h]h ]h"]h$]h&]morerowsKuh1jn hj ubjo )}(hhh]h)}(h FDISC ACCh]h FDISC ACC}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hActiveh]hActive}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hFDISC LS_RJT w/ no resourcesh]hFDISC LS_RJT w/ no resources}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hNo Fabric Resourcesh]hNo Fabric Resources}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhj- ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h1FDISC LS_RJT w/ invalid pname or invalid nport_idh]h1FDISC LS_RJT w/ invalid pname or invalid nport_id}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjM ubah}(h]h ]h"]h$]h&]uh1jn hjJ ubjo )}(hhh]h)}(hFabric Rejected WWNh]hFabric Rejected WWN}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjd ubah}(h]h ]h"]h$]h&]uh1jn hjJ ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h%FDISC LS_RJT failed for other reasonsh]h%FDISC LS_RJT failed for other reasons}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(h Vport Failedh]h Vport Failed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h Link Downh]h Link Down}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hLinkdownh]hLinkdown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hDisable requesth]hDisable request}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hDisableh]hDisable}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hDisable:h]hDisable:}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj) ubah}(h]h ]h"]h$]h&]uh1jn hj& ubjo )}(hhh]h)}(hEnable requesth]hEnable request}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj@ ubah}(h]h ]h"]h$]h&]uh1jn hj& ubjo )}(hhh]h)}(hUnknownh]hUnknown}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjW ubah}(h]h ]h"]h$]h&]uh1jn hj& ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hActive:h]hActive:}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhjw ubah}(h]h ]h"]h$]h&]morerowsKuh1jn hjt ubjo )}(hhh]h)}(hLOGO received from fabrich]hLOGO received from fabric}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhj ubah}(h]h ]h"]h$]h&]uh1jn hjt ubjo )}(hhh]h)}(h Fabric Logouth]h Fabric Logout}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhj ubah}(h]h ]h"]h$]h&]uh1jn hjt ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(h Link Downh]h Link Down}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hLinkdownh]hLinkdown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hDisable requesth]hDisable request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(hhh]h)}(hDisableh]hDisable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hjubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hj ubjj )}(hhh](jo )}(hhh]h)}(hFabric Logout:h]hFabric Logout:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj4ubah}(h]h ]h"]h$]h&]uh1jn hj1ubjo )}(hhh]h)}(h Link still uph]h Link still up}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hjKubah}(h]h ]h"]h$]h&]uh1jn hj1ubjo )}(hhh]h)}(hUnknownh]hUnknown}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hjbubah}(h]h ]h"]h$]h&]uh1jn hj1ubeh}(h]h ]h"]h$]h&]uh1ji hj ubeh}(h]h ]h"]h$]h&]uh1j hjA ubeh}(h]h ]h"]h$]h&]colsKuh1j? hj< ubah}(h]h ]h"]h$]h&]uh1j: hj6 ubah}(h]h ]h"]h$]h&]uh1jYhhhM6hjoubeh}(h]h ]h"]h$]h&]uh1jYhhhKhj^hhubh)}(h LLDD Interfacesh]hTransport <-> LLDD Interfaces}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMnubh)}(hVport support by LLDD:h]hVport support by LLDD:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphjhhubjZ)}(hXThe LLDD indicates support for vports by supplying a vport_create() function in the transport template. The presence of this function will cause the creation of the new attributes on the fc_host. As part of the physical port completing its initialization relative to the transport, it should set the max_npiv_vports attribute to indicate the maximum number of vports the driver and/or adapter supports. h]h)}(hXThe LLDD indicates support for vports by supplying a vport_create() function in the transport template. The presence of this function will cause the creation of the new attributes on the fc_host. As part of the physical port completing its initialization relative to the transport, it should set the max_npiv_vports attribute to indicate the maximum number of vports the driver and/or adapter supports.h]hXThe LLDD indicates support for vports by supplying a vport_create() function in the transport template. The presence of this function will cause the creation of the new attributes on the fc_host. As part of the physical port completing its initialization relative to the transport, it should set the max_npiv_vports attribute to indicate the maximum number of vports the driver and/or adapter supports.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhjubah}(h]h ]h"]h$]h&]uh1jYhhhMrhjhhubh)}(hVport Creation:h]hVport Creation:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMzhjhhubjZ)}(hXThe LLDD vport_create() syntax is:: int vport_create(struct fc_vport *vport, bool disable) where: ======= =========================================================== vport Is the newly allocated vport object disable If "true", the vport is to be created in a disabled stated. If "false", the vport is to be enabled upon creation. ======= =========================================================== When a request is made to create a new vport (via sgio/netlink, or the vport_create fc_host attribute), the transport will validate that the LLDD can support another vport (e.g. max_npiv_vports > npiv_vports_inuse). If not, the create request will be failed. If space remains, the transport will increment the vport count, create the vport object, and then call the LLDD's vport_create() function with the newly allocated vport object. As mentioned above, vport creation is divided into two parts: - Creation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state. - Instantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. The LLDD's vport_create() function will not synchronously wait for both parts to be fully completed before returning. It must validate that the infrastructure exists to support NPIV, and complete the first part of vport creation (data structure build up) before returning. We do not hinge vport_create() on the link-side operation mainly because: - The link may be down. It is not a failure if it is. It simply means the vport is in an inoperable state until the link comes up. This is consistent with the link bouncing post vport creation. - The vport may be created in a disabled state. - This is consistent with a model where: the vport equates to a FC adapter. The vport_create is synonymous with driver attachment to the adapter, which is independent of link state. .. Note:: special error codes have been defined to delineate infrastructure failure cases for quicker resolution. The expected behavior for the LLDD's vport_create() function is: - Validate Infrastructure: - If the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED. - If the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN. - If the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. - Allocate data structures. If errors are encountered, such as out of memory conditions, return the respective negative Exxx error code. - If the role is FCP Initiator, the LLDD is to : - Call scsi_host_alloc() to allocate a scsi_host for the vport. - Call scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device. - Initializes the fc_host attribute values. - Kick of further vport state transitions based on the disable flag and link state - and return success (zero). LLDD Implementers Notes: - It is suggested that there be a different fc_function_templates for the physical port and the virtual port. The physical port's template would have the vport_create, vport_delete, and vport_disable functions, while the vports would not. - It is suggested that there be different scsi_host_templates for the physical port and virtual port. Likely, there are driver attributes, embedded into the scsi_host_template, that are applicable for the physical port only (link speed, topology setting, etc). This ensures that the attributes are applicable to the respective scsi_host. h](h)}(h#The LLDD vport_create() syntax is::h]h"The LLDD vport_create() syntax is:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjubh)}(h6int vport_create(struct fc_vport *vport, bool disable)h]h6int vport_create(struct fc_vport *vport, bool disable)}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhM~hjubh)}(hwhere:h]hwhere:}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(hX@======= =========================================================== vport Is the newly allocated vport object disable If "true", the vport is to be created in a disabled stated. If "false", the vport is to be enabled upon creation. ======= =========================================================== h]j; )}(hhh]j@ )}(hhh](jE )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hj<ubjE )}(hhh]h}(h]h ]h"]h$]h&]colwidthK;uh1jD hj<ubj )}(hhh](jj )}(hhh](jo )}(hhh]h)}(hvporth]hvport}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjYubah}(h]h ]h"]h$]h&]uh1jn hjVubjo )}(hhh]h)}(h#Is the newly allocated vport objecth]h#Is the newly allocated vport object}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjpubah}(h]h ]h"]h$]h&]uh1jn hjVubeh}(h]h ]h"]h$]h&]uh1ji hjSubjj )}(hhh](jo )}(hhh]h)}(hdisableh]hdisable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubjo )}(hhh]h)}(hqIf "true", the vport is to be created in a disabled stated. If "false", the vport is to be enabled upon creation.h]hyIf “true”, the vport is to be created in a disabled stated. If “false”, the vport is to be enabled upon creation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubeh}(h]h ]h"]h$]h&]uh1ji hjSubeh}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]colsKuh1j? hj9ubah}(h]h ]h"]h$]h&]uh1j: hj5ubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubh)}(hXWhen a request is made to create a new vport (via sgio/netlink, or the vport_create fc_host attribute), the transport will validate that the LLDD can support another vport (e.g. max_npiv_vports > npiv_vports_inuse). If not, the create request will be failed. If space remains, the transport will increment the vport count, create the vport object, and then call the LLDD's vport_create() function with the newly allocated vport object.h]hXWhen a request is made to create a new vport (via sgio/netlink, or the vport_create fc_host attribute), the transport will validate that the LLDD can support another vport (e.g. max_npiv_vports > npiv_vports_inuse). If not, the create request will be failed. If space remains, the transport will increment the vport count, create the vport object, and then call the LLDD’s vport_create() function with the newly allocated vport object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h=As mentioned above, vport creation is divided into two parts:h]h=As mentioned above, vport creation is divided into two parts:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(hX|- Creation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state. - Instantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. h]j)}(hhh](j)}(hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state.h]h)}(hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver "attach" on an adapter, which is independent of the adapter's link state.h]hCreation with the kernel and LLDD. This means all transport and driver data structures are built up, and device objects created. This is equivalent to a driver “attach” on an adapter, which is independent of the adapter’s link state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization. h]h)}(hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a "link up" and successful link initialization.h]hInstantiation of the vport on the FC link via ELS traffic, etc. This is equivalent to a “link up” and successful link initialization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubh)}(hX[The LLDD's vport_create() function will not synchronously wait for both parts to be fully completed before returning. It must validate that the infrastructure exists to support NPIV, and complete the first part of vport creation (data structure build up) before returning. We do not hinge vport_create() on the link-side operation mainly because:h]hX]The LLDD’s vport_create() function will not synchronously wait for both parts to be fully completed before returning. It must validate that the infrastructure exists to support NPIV, and complete the first part of vport creation (data structure build up) before returning. We do not hinge vport_create() on the link-side operation mainly because:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(hX- The link may be down. It is not a failure if it is. It simply means the vport is in an inoperable state until the link comes up. This is consistent with the link bouncing post vport creation. - The vport may be created in a disabled state. - This is consistent with a model where: the vport equates to a FC adapter. The vport_create is synonymous with driver attachment to the adapter, which is independent of link state. h]j)}(hhh](j)}(hThe link may be down. It is not a failure if it is. It simply means the vport is in an inoperable state until the link comes up. This is consistent with the link bouncing post vport creation.h]h)}(hThe link may be down. It is not a failure if it is. It simply means the vport is in an inoperable state until the link comes up. This is consistent with the link bouncing post vport creation.h]hThe link may be down. It is not a failure if it is. It simply means the vport is in an inoperable state until the link comes up. This is consistent with the link bouncing post vport creation.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h-The vport may be created in a disabled state.h]h)}(hjkh]h-The vport may be created in a disabled state.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(hThis is consistent with a model where: the vport equates to a FC adapter. The vport_create is synonymous with driver attachment to the adapter, which is independent of link state. h]h)}(hThis is consistent with a model where: the vport equates to a FC adapter. The vport_create is synonymous with driver attachment to the adapter, which is independent of link state.h]hThis is consistent with a model where: the vport equates to a FC adapter. The vport_create is synonymous with driver attachment to the adapter, which is independent of link state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubj8)}(hgspecial error codes have been defined to delineate infrastructure failure cases for quicker resolution.h]h)}(hgspecial error codes have been defined to delineate infrastructure failure cases for quicker resolution.h]hgspecial error codes have been defined to delineate infrastructure failure cases for quicker resolution.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j7hjubh)}(h@The expected behavior for the LLDD's vport_create() function is:h]hBThe expected behavior for the LLDD’s vport_create() function is:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(hX- Validate Infrastructure: - If the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED. - If the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN. - If the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. - Allocate data structures. If errors are encountered, such as out of memory conditions, return the respective negative Exxx error code. - If the role is FCP Initiator, the LLDD is to : - Call scsi_host_alloc() to allocate a scsi_host for the vport. - Call scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device. - Initializes the fc_host attribute values. - Kick of further vport state transitions based on the disable flag and link state - and return success (zero). h]j)}(hhh](j)}(hXValidate Infrastructure: - If the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED. - If the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN. - If the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. h](h)}(hValidate Infrastructure:h]hValidate Infrastructure:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(hX- If the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED. - If the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN. - If the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. h]j)}(hhh](j)}(hIf the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED.h]j)}(hhh]j)}(hIf the driver or adapter cannot support another vport, whether due to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED.h](j)}(h>If the driver or adapter cannot support another vport, whetherh]h>If the driver or adapter cannot support another vport, whether}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hodue to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED.h]hodue to improper firmware, (a lie about) max_npiv, or a lack of some other resource - return VPCERR_UNSUPPORTED.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIf the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN.h]j)}(hhh]j)}(h}If the driver validates the WWN's against those already active on the adapter and detects an overlap - return VPCERR_BAD_WWN.h](j)}(hAIf the driver validates the WWN's against those already active onh]hCIf the driver validates the WWN’s against those already active on}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubj)}(hhh]h)}(h;the adapter and detects an overlap - return VPCERR_BAD_WWN.h]h;the adapter and detects an overlap - return VPCERR_BAD_WWN.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj0ubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h|If the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. h]j)}(hhh]j)}(hzIf the driver detects the topology is loop, non-fabric, or the FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP. h](j)}(h>If the driver detects the topology is loop, non-fabric, or theh]h>If the driver detects the topology is loop, non-fabric, or the}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjuubj)}(hhh]h)}(h:FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP.h]h:FLOGI did not support NPIV - return VPCERR_NO_FABRIC_SUPP.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhhhMhjrubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hAllocate data structures. If errors are encountered, such as out of memory conditions, return the respective negative Exxx error code.h]j)}(hhh]j)}(hAllocate data structures. If errors are encountered, such as out of memory conditions, return the respective negative Exxx error code.h](j)}(h@Allocate data structures. If errors are encountered, such as outh]h@Allocate data structures. If errors are encountered, such as out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hEof memory conditions, return the respective negative Exxx error code.h]hEof memory conditions, return the respective negative Exxx error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXIf the role is FCP Initiator, the LLDD is to : - Call scsi_host_alloc() to allocate a scsi_host for the vport. - Call scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device. - Initializes the fc_host attribute values. h](h)}(h.If the role is FCP Initiator, the LLDD is to :h]h.If the role is FCP Initiator, the LLDD is to :}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(h- Call scsi_host_alloc() to allocate a scsi_host for the vport. - Call scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device. - Initializes the fc_host attribute values. h]j)}(hhh](j)}(h=Call scsi_host_alloc() to allocate a scsi_host for the vport.h]h)}(hjh]h=Call scsi_host_alloc() to allocate a scsi_host for the vport.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hmCall scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device.h]h)}(hmCall scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device.h]hmCall scsi_add_host(new_shost, &vport->dev) to start the scsi_host and bind it as a child of the vport device.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h*Initializes the fc_host attribute values. h]h)}(h)Initializes the fc_host attribute values.h]h)Initializes the fc_host attribute values.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hpKick of further vport state transitions based on the disable flag and link state - and return success (zero). h]j)}(hhh]j)}(hnKick of further vport state transitions based on the disable flag and link state - and return success (zero). h](j)}(hEKick of further vport state transitions based on the disable flag andh]hEKick of further vport state transitions based on the disable flag and}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj}ubj)}(hhh]h)}(h'link state - and return success (zero).h]h'link state - and return success (zero).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjzubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubh)}(hLLDD Implementers Notes:h]hLLDD Implementers Notes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj)}(hhh](j)}(hIt is suggested that there be a different fc_function_templates for the physical port and the virtual port. The physical port's template would have the vport_create, vport_delete, and vport_disable functions, while the vports would not.h]h)}(hIt is suggested that there be a different fc_function_templates for the physical port and the virtual port. The physical port's template would have the vport_create, vport_delete, and vport_disable functions, while the vports would not.h]hIt is suggested that there be a different fc_function_templates for the physical port and the virtual port. The physical port’s template would have the vport_create, vport_delete, and vport_disable functions, while the vports would not.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXQIt is suggested that there be different scsi_host_templates for the physical port and virtual port. Likely, there are driver attributes, embedded into the scsi_host_template, that are applicable for the physical port only (link speed, topology setting, etc). This ensures that the attributes are applicable to the respective scsi_host. h]h)}(hXOIt is suggested that there be different scsi_host_templates for the physical port and virtual port. Likely, there are driver attributes, embedded into the scsi_host_template, that are applicable for the physical port only (link speed, topology setting, etc). This ensures that the attributes are applicable to the respective scsi_host.h]hXOIt is suggested that there be different scsi_host_templates for the physical port and virtual port. Likely, there are driver attributes, embedded into the scsi_host_template, that are applicable for the physical port only (link speed, topology setting, etc). This ensures that the attributes are applicable to the respective scsi_host.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jYhhhM|hjhhubh)}(hVport Disable/Enable:h]hVport Disable/Enable:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjZ)}(hXThe LLDD vport_disable() syntax is:: int vport_disable(struct fc_vport *vport, bool disable) where: ======= ======================================= vport Is vport to be enabled or disabled disable If "true", the vport is to be disabled. If "false", the vport is to be enabled. ======= ======================================= When a request is made to change the disabled state on a vport, the transport will validate the request against the existing vport state. If the request is to disable and the vport is already disabled, the request will fail. Similarly, if the request is to enable, and the vport is not in a disabled state, the request will fail. If the request is valid for the vport state, the transport will call the LLDD to change the vport's state. Within the LLDD, if a vport is disabled, it remains instantiated with the kernel and LLDD, but it is not active or visible on the FC link in any way. (see Vport Creation and the 2 part instantiation discussion). The vport will remain in this state until it is deleted or re-enabled. When enabling a vport, the LLDD reinstantiates the vport on the FC link - essentially restarting the LLDD statemachine (see Vport States above). h](h)}(h$The LLDD vport_disable() syntax is::h]h#The LLDD vport_disable() syntax is:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h7int vport_disable(struct fc_vport *vport, bool disable)h]h7int vport_disable(struct fc_vport *vport, bool disable)}hj1sbah}(h]h ]h"]h$]h&]hhuh1hhhhMhjubh)}(hwhere:h]hwhere:}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjZ)}(h======= ======================================= vport Is vport to be enabled or disabled disable If "true", the vport is to be disabled. If "false", the vport is to be enabled. ======= ======================================= h]j; )}(hhh]j@ )}(hhh](jE )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hjTubjE )}(hhh]h}(h]h ]h"]h$]h&]colwidthK'uh1jD hjTubj )}(hhh](jj )}(hhh](jo )}(hhh]h)}(hvporth]hvport}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjqubah}(h]h ]h"]h$]h&]uh1jn hjnubjo )}(hhh]h)}(h"Is vport to be enabled or disabledh]h"Is vport to be enabled or disabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjnubeh}(h]h ]h"]h$]h&]uh1ji hjkubjj )}(hhh](jo )}(hhh]h)}(hdisableh]hdisable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubjo )}(hhh]h)}(hOIf "true", the vport is to be disabled. If "false", the vport is to be enabled.h]hWIf “true”, the vport is to be disabled. If “false”, the vport is to be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubeh}(h]h ]h"]h$]h&]uh1ji hjkubeh}(h]h ]h"]h$]h&]uh1j hjTubeh}(h]h ]h"]h$]h&]colsKuh1j? hjQubah}(h]h ]h"]h$]h&]uh1j: hjMubah}(h]h ]h"]h$]h&]uh1jYhhhMhjubh)}(hXWhen a request is made to change the disabled state on a vport, the transport will validate the request against the existing vport state. If the request is to disable and the vport is already disabled, the request will fail. Similarly, if the request is to enable, and the vport is not in a disabled state, the request will fail. If the request is valid for the vport state, the transport will call the LLDD to change the vport's state.h]hXWhen a request is made to change the disabled state on a vport, the transport will validate the request against the existing vport state. If the request is to disable and the vport is already disabled, the request will fail. Similarly, if the request is to enable, and the vport is not in a disabled state, the request will fail. If the request is valid for the vport state, the transport will call the LLDD to change the vport’s state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hXWithin the LLDD, if a vport is disabled, it remains instantiated with the kernel and LLDD, but it is not active or visible on the FC link in any way. (see Vport Creation and the 2 part instantiation discussion). The vport will remain in this state until it is deleted or re-enabled. When enabling a vport, the LLDD reinstantiates the vport on the FC link - essentially restarting the LLDD statemachine (see Vport States above).h]hXWithin the LLDD, if a vport is disabled, it remains instantiated with the kernel and LLDD, but it is not active or visible on the FC link in any way. (see Vport Creation and the 2 part instantiation discussion). The vport will remain in this state until it is deleted or re-enabled. When enabling a vport, the LLDD reinstantiates the vport on the FC link - essentially restarting the LLDD statemachine (see Vport States above).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jYhhhMhjhhubh)}(hVport Deletion:h]hVport Deletion:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjZ)}(hXXThe LLDD vport_delete() syntax is:: int vport_delete(struct fc_vport *vport) where: vport: Is vport to delete When a request is made to delete a vport (via sgio/netlink, or via the fc_host or fc_vport vport_delete attributes), the transport will call the LLDD to terminate the vport on the FC link, and teardown all other datastructures and references. If the LLDD completes successfully, the transport will teardown the vport objects and complete the vport removal. If the LLDD delete request fails, the vport object will remain, but will be in an indeterminate state. Within the LLDD, the normal code paths for a scsi_host teardown should be followed. E.g. If the vport has a FCP Initiator role, the LLDD will call fc_remove_host() for the vports scsi_host, followed by scsi_remove_host() and scsi_host_put() for the vports scsi_host. h](h)}(h#The LLDD vport_delete() syntax is::h]h"The LLDD vport_delete() syntax is:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubh)}(h(int vport_delete(struct fc_vport *vport)h]h(int vport_delete(struct fc_vport *vport)}hj7sbah}(h]h ]h"]h$]h&]hhuh1hhhhMhj%ubh)}(hwhere:h]hwhere:}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubjZ)}(hvport: Is vport to delete h]h)}(hvport: Is vport to deleteh]hvport: Is vport to delete}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjSubah}(h]h ]h"]h$]h&]uh1jYhhhMhj%ubh)}(hXWhen a request is made to delete a vport (via sgio/netlink, or via the fc_host or fc_vport vport_delete attributes), the transport will call the LLDD to terminate the vport on the FC link, and teardown all other datastructures and references. If the LLDD completes successfully, the transport will teardown the vport objects and complete the vport removal. If the LLDD delete request fails, the vport object will remain, but will be in an indeterminate state.h]hXWhen a request is made to delete a vport (via sgio/netlink, or via the fc_host or fc_vport vport_delete attributes), the transport will call the LLDD to terminate the vport on the FC link, and teardown all other datastructures and references. If the LLDD completes successfully, the transport will teardown the vport objects and complete the vport removal. If the LLDD delete request fails, the vport object will remain, but will be in an indeterminate state.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubh)}(hX Within the LLDD, the normal code paths for a scsi_host teardown should be followed. E.g. If the vport has a FCP Initiator role, the LLDD will call fc_remove_host() for the vports scsi_host, followed by scsi_remove_host() and scsi_host_put() for the vports scsi_host.h]hX Within the LLDD, the normal code paths for a scsi_host teardown should be followed. E.g. If the vport has a FCP Initiator role, the LLDD will call fc_remove_host() for the vports scsi_host, followed by scsi_remove_host() and scsi_host_put() for the vports scsi_host.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1jYhhhMhjhhubj)}(hhh]j)}(hXOther: fc_host port_type attribute: There is a new fc_host port_type value - FC_PORTTYPE_NPIV. This value must be set on all vport-based fc_hosts. Normally, on a physical port, the port_type attribute would be set to NPORT, NLPORT, etc based on the topology type and existence of the fabric. As this is not applicable to a vport, it makes more sense to report the FC mechanism used to create the vport. Driver unload: FC drivers are required to call fc_remove_host() prior to calling scsi_remove_host(). This allows the fc_host to tear down all remote ports prior the scsi_host being torn down. The fc_remove_host() call was updated to remove all vports for the fc_host as well. h](j)}(hOther:h]hOther:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]j)}(hhh](j)}(hXfc_host port_type attribute: There is a new fc_host port_type value - FC_PORTTYPE_NPIV. This value must be set on all vport-based fc_hosts. Normally, on a physical port, the port_type attribute would be set to NPORT, NLPORT, etc based on the topology type and existence of the fabric. As this is not applicable to a vport, it makes more sense to report the FC mechanism used to create the vport. h](j)}(hfc_host port_type attribute:h]hfc_host port_type attribute:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hXoThere is a new fc_host port_type value - FC_PORTTYPE_NPIV. This value must be set on all vport-based fc_hosts. Normally, on a physical port, the port_type attribute would be set to NPORT, NLPORT, etc based on the topology type and existence of the fabric. As this is not applicable to a vport, it makes more sense to report the FC mechanism used to create the vport.h]hXoThere is a new fc_host port_type value - FC_PORTTYPE_NPIV. This value must be set on all vport-based fc_hosts. Normally, on a physical port, the port_type attribute would be set to NPORT, NLPORT, etc based on the topology type and existence of the fabric. As this is not applicable to a vport, it makes more sense to report the FC mechanism used to create the vport.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXDriver unload: FC drivers are required to call fc_remove_host() prior to calling scsi_remove_host(). This allows the fc_host to tear down all remote ports prior the scsi_host being torn down. The fc_remove_host() call was updated to remove all vports for the fc_host as well. h](j)}(hDriver unload:h]hDriver unload:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hXFC drivers are required to call fc_remove_host() prior to calling scsi_remove_host(). This allows the fc_host to tear down all remote ports prior the scsi_host being torn down. The fc_remove_host() call was updated to remove all vports for the fc_host as well.h]hXFC drivers are required to call fc_remove_host() prior to calling scsi_remove_host(). This allows the fc_host to tear down all remote ports prior the scsi_host being torn down. The fc_remove_host() call was updated to remove all vports for the fc_host as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubeh}(h]transport-lldd-interfacesah ]h"]transport <-> lldd interfacesah$]h&]uh1hhjhhhhhMnubh)}(hhh](h)}(hTransport supplied functionsh]hTransport supplied functions}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hhhhhMubh)}(hIThe following functions are supplied by the FC-transport for use by LLDs.h]hIThe following functions are supplied by the FC-transport for use by LLDs.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&hhubjZ)}(h================== ========================= fc_vport_create create a vport fc_vport_terminate detach and remove a vport ================== ========================= h]j; )}(hhh]j@ )}(hhh](jE )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hjLubjE )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jD hjLubj )}(hhh](jj )}(hhh](jo )}(hhh]h)}(hfc_vport_createh]hfc_vport_create}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiubah}(h]h ]h"]h$]h&]uh1jn hjfubjo )}(hhh]h)}(hcreate a vporth]hcreate a vport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjfubeh}(h]h ]h"]h$]h&]uh1ji hjcubjj )}(hhh](jo )}(hhh]h)}(hfc_vport_terminateh]hfc_vport_terminate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubjo )}(hhh]h)}(hdetach and remove a vporth]hdetach and remove a vport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jn hjubeh}(h]h ]h"]h$]h&]uh1ji hjcubeh}(h]h ]h"]h$]h&]uh1j hjLubeh}(h]h ]h"]h$]h&]colsKuh1j? hjIubah}(h]h ]h"]h$]h&]uh1j: hjEubah}(h]h ]h"]h$]h&]uh1jYhhhMhj&hhubh)}(h Details::h]hDetails:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj&hhubh)}(hX/** * fc_vport_create - Admin App or LLDD requests creation of a vport * @shost: scsi host the virtual port is connected to. * @ids: The world wide names, FC4 port roles, etc for * the virtual port. * * Notes: * This routine assumes no locks are held on entry. */ struct fc_vport * fc_vport_create(struct Scsi_Host *shost, struct fc_vport_identifiers *ids) /** * fc_vport_terminate - Admin App or LLDD requests termination of a vport * @vport: fc_vport to be terminated * * Calls the LLDD vport_delete() function, then deallocates and removes * the vport from the shost and object tree. * * Notes: * This routine assumes no locks are held on entry. */ int fc_vport_terminate(struct fc_vport *vport)h]hX/** * fc_vport_create - Admin App or LLDD requests creation of a vport * @shost: scsi host the virtual port is connected to. * @ids: The world wide names, FC4 port roles, etc for * the virtual port. * * Notes: * This routine assumes no locks are held on entry. */ struct fc_vport * fc_vport_create(struct Scsi_Host *shost, struct fc_vport_identifiers *ids) /** * fc_vport_terminate - Admin App or LLDD requests termination of a vport * @vport: fc_vport to be terminated * * Calls the LLDD vport_delete() function, then deallocates and removes * the vport from the shost and object tree. * * Notes: * This routine assumes no locks are held on entry. */ int fc_vport_terminate(struct fc_vport *vport)}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhM#hj&hhubeh}(h]transport-supplied-functionsah ]h"]transport supplied functionsah$]h&]uh1hhjhhhhhMubeh}(h]fc-virtual-ports-vportsah ]h"]fc virtual ports (vports)ah$]h&]uh1hhhhhhhhKFubh)}(hhh](h)}(h,FC BSG support (CT & ELS passthru, and more)h]h,FC BSG support (CT & ELS passthru, and more)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM>ubh)}(h<< To Be Supplied >>h]h<< To Be Supplied >>}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubeh}(h]'fc-bsg-support-ct-els-passthru-and-moreah ]h"],fc bsg support (ct & els passthru, and more)ah$]h&]uh1hhhhhhhhM>ubh)}(hhh](h)}(hCreditsh]hCredits}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hhhhhMGubh)}(h7The following people have contributed to this document:h]h7The following people have contributed to this document:}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj@hhubh)}(h$James Smart james.smart@broadcom.comh](h James Smart }(hj_hhhNhNubh reference)}(hjames.smart@broadcom.comh]hjames.smart@broadcom.com}(hjihhhNhNubah}(h]h ]h"]h$]h&]refurimailto:james.smart@broadcom.comuh1jghj_ubeh}(h]h ]h"]h$]h&]uh1hhhhMOhj@hhubeh}(h]creditsah ]h"]creditsah$]h&]uh1hhhhhhhhMGubeh}(h]scsi-fc-transportah ]h"]scsi fc transportah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjn footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjEjBjjjjjtjqjejbj[jXjjj#j jj j=j:jju nametypes}(jjEjjjtjej[jj#jj=juh}(jhjBhjjHjjjqjjbjwjXjhjj^j jj j&j:jjj@u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.