162306a36Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/add_target 262306a36Sopenharmony_ciDate: January 2, 2006 362306a36Sopenharmony_ciKernelVersion: 2.6.15 462306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 562306a36Sopenharmony_ciDescription: Interface for making ib_srp connect to a new target. 662306a36Sopenharmony_ci One can request ib_srp to connect to a new target by writing 762306a36Sopenharmony_ci a comma-separated list of login parameters to this sysfs 862306a36Sopenharmony_ci attribute. The supported parameters are: 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci * id_ext, a 16-digit hexadecimal number specifying the eight 1162306a36Sopenharmony_ci byte identifier extension in the 16-byte SRP target port 1262306a36Sopenharmony_ci identifier. The target port identifier is sent by ib_srp 1362306a36Sopenharmony_ci to the target in the SRP_LOGIN_REQ request. 1462306a36Sopenharmony_ci * ioc_guid, a 16-digit hexadecimal number specifying the eight 1562306a36Sopenharmony_ci byte I/O controller GUID portion of the 16-byte target port 1662306a36Sopenharmony_ci identifier. 1762306a36Sopenharmony_ci * dgid, a 32-digit hexadecimal number specifying the 1862306a36Sopenharmony_ci destination GID. 1962306a36Sopenharmony_ci * pkey, a four-digit hexadecimal number specifying the 2062306a36Sopenharmony_ci InfiniBand partition key. 2162306a36Sopenharmony_ci * service_id, a 16-digit hexadecimal number specifying the 2262306a36Sopenharmony_ci InfiniBand service ID used to establish communication with 2362306a36Sopenharmony_ci the SRP target. How to find out the value of the service ID 2462306a36Sopenharmony_ci is specified in the documentation of the SRP target. 2562306a36Sopenharmony_ci * max_sect, a decimal number specifying the maximum number of 2662306a36Sopenharmony_ci 512-byte sectors to be transferred via a single SCSI command. 2762306a36Sopenharmony_ci * max_cmd_per_lun, a decimal number specifying the maximum 2862306a36Sopenharmony_ci number of outstanding commands for a single LUN. 2962306a36Sopenharmony_ci * io_class, a hexadecimal number specifying the SRP I/O class. 3062306a36Sopenharmony_ci Must be either 0xff00 (rev 10) or 0x0100 (rev 16a). The I/O 3162306a36Sopenharmony_ci class defines the format of the SRP initiator and target 3262306a36Sopenharmony_ci port identifiers. 3362306a36Sopenharmony_ci * initiator_ext, a 16-digit hexadecimal number specifying the 3462306a36Sopenharmony_ci identifier extension portion of the SRP initiator port 3562306a36Sopenharmony_ci identifier. This data is sent by the initiator to the target 3662306a36Sopenharmony_ci in the SRP_LOGIN_REQ request. 3762306a36Sopenharmony_ci * cmd_sg_entries, a number in the range 1..255 that specifies 3862306a36Sopenharmony_ci the maximum number of data buffer descriptors stored in the 3962306a36Sopenharmony_ci SRP_CMD information unit itself. With allow_ext_sg=0 the 4062306a36Sopenharmony_ci parameter cmd_sg_entries defines the maximum S/G list length 4162306a36Sopenharmony_ci for a single SRP_CMD, and commands whose S/G list length 4262306a36Sopenharmony_ci exceeds this limit after S/G list collapsing will fail. 4362306a36Sopenharmony_ci * allow_ext_sg, whether ib_srp is allowed to include a partial 4462306a36Sopenharmony_ci memory descriptor list in an SRP_CMD instead of the entire 4562306a36Sopenharmony_ci list. If a partial memory descriptor list has been included 4662306a36Sopenharmony_ci in an SRP_CMD the remaining memory descriptors are 4762306a36Sopenharmony_ci communicated from initiator to target via an additional RDMA 4862306a36Sopenharmony_ci transfer. Setting allow_ext_sg to 1 increases the maximum 4962306a36Sopenharmony_ci amount of data that can be transferred between initiator and 5062306a36Sopenharmony_ci target via a single SCSI command. Since not all SRP target 5162306a36Sopenharmony_ci implementations support partial memory descriptor lists the 5262306a36Sopenharmony_ci default value for this option is 0. 5362306a36Sopenharmony_ci * sg_tablesize, a number in the range 1..2048 specifying the 5462306a36Sopenharmony_ci maximum S/G list length the SCSI layer is allowed to pass to 5562306a36Sopenharmony_ci ib_srp. Specifying a value that exceeds cmd_sg_entries is 5662306a36Sopenharmony_ci only safe with partial memory descriptor list support enabled 5762306a36Sopenharmony_ci (allow_ext_sg=1). 5862306a36Sopenharmony_ci * comp_vector, a number in the range 0..n-1 specifying the 5962306a36Sopenharmony_ci MSI-X completion vector of the first RDMA channel. Some 6062306a36Sopenharmony_ci HCA's allocate multiple (n) MSI-X vectors per HCA port. If 6162306a36Sopenharmony_ci the IRQ affinity masks of these interrupts have been 6262306a36Sopenharmony_ci configured such that each MSI-X interrupt is handled by a 6362306a36Sopenharmony_ci different CPU then the comp_vector parameter can be used to 6462306a36Sopenharmony_ci spread the SRP completion workload over multiple CPU's. 6562306a36Sopenharmony_ci * tl_retry_count, a number in the range 2..7 specifying the 6662306a36Sopenharmony_ci IB RC retry count. 6762306a36Sopenharmony_ci * queue_size, the maximum number of commands that the 6862306a36Sopenharmony_ci initiator is allowed to queue per SCSI host. The default 6962306a36Sopenharmony_ci value for this parameter is 62. The lowest supported value 7062306a36Sopenharmony_ci is 2. 7162306a36Sopenharmony_ci * max_it_iu_size, a decimal number specifying the maximum 7262306a36Sopenharmony_ci initiator to target information unit length. 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/ibdev 7562306a36Sopenharmony_ciDate: January 2, 2006 7662306a36Sopenharmony_ciKernelVersion: 2.6.15 7762306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 7862306a36Sopenharmony_ciDescription: HCA name (<hca>). 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/port 8162306a36Sopenharmony_ciDate: January 2, 2006 8262306a36Sopenharmony_ciKernelVersion: 2.6.15 8362306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 8462306a36Sopenharmony_ciDescription: HCA port number (<port_number>). 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/allow_ext_sg 8762306a36Sopenharmony_ciDate: May 19, 2011 8862306a36Sopenharmony_ciKernelVersion: 2.6.39 8962306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 9062306a36Sopenharmony_ciDescription: Whether ib_srp is allowed to include a partial memory 9162306a36Sopenharmony_ci descriptor list in an SRP_CMD when communicating with an SRP 9262306a36Sopenharmony_ci target. 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/ch_count 9562306a36Sopenharmony_ciDate: April 1, 2015 9662306a36Sopenharmony_ciKernelVersion: 3.19 9762306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 9862306a36Sopenharmony_ciDescription: Number of RDMA channels used for communication with the SRP 9962306a36Sopenharmony_ci target. 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/cmd_sg_entries 10262306a36Sopenharmony_ciDate: May 19, 2011 10362306a36Sopenharmony_ciKernelVersion: 2.6.39 10462306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 10562306a36Sopenharmony_ciDescription: Maximum number of data buffer descriptors that may be sent to 10662306a36Sopenharmony_ci the target in a single SRP_CMD request. 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/comp_vector 10962306a36Sopenharmony_ciDate: September 2, 2013 11062306a36Sopenharmony_ciKernelVersion: 3.11 11162306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 11262306a36Sopenharmony_ciDescription: Completion vector used for the first RDMA channel. 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/dgid 11562306a36Sopenharmony_ciDate: June 17, 2006 11662306a36Sopenharmony_ciKernelVersion: 2.6.17 11762306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 11862306a36Sopenharmony_ciDescription: InfiniBand destination GID used for communication with the SRP 11962306a36Sopenharmony_ci target. Differs from orig_dgid if port redirection has happened. 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/id_ext 12262306a36Sopenharmony_ciDate: June 17, 2006 12362306a36Sopenharmony_ciKernelVersion: 2.6.17 12462306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 12562306a36Sopenharmony_ciDescription: Eight-byte identifier extension portion of the 16-byte target 12662306a36Sopenharmony_ci port identifier. 12762306a36Sopenharmony_ci 12862306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/ioc_guid 12962306a36Sopenharmony_ciDate: June 17, 2006 13062306a36Sopenharmony_ciKernelVersion: 2.6.17 13162306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 13262306a36Sopenharmony_ciDescription: Eight-byte I/O controller GUID portion of the 16-byte target 13362306a36Sopenharmony_ci port identifier. 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/local_ib_device 13662306a36Sopenharmony_ciDate: November 29, 2006 13762306a36Sopenharmony_ciKernelVersion: 2.6.19 13862306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 13962306a36Sopenharmony_ciDescription: Name of the InfiniBand HCA used for communicating with the 14062306a36Sopenharmony_ci SRP target. 14162306a36Sopenharmony_ci 14262306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/local_ib_port 14362306a36Sopenharmony_ciDate: November 29, 2006 14462306a36Sopenharmony_ciKernelVersion: 2.6.19 14562306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 14662306a36Sopenharmony_ciDescription: Number of the HCA port used for communicating with the 14762306a36Sopenharmony_ci SRP target. 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/orig_dgid 15062306a36Sopenharmony_ciDate: June 17, 2006 15162306a36Sopenharmony_ciKernelVersion: 2.6.17 15262306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 15362306a36Sopenharmony_ciDescription: InfiniBand destination GID specified in the parameters 15462306a36Sopenharmony_ci written to the add_target sysfs attribute. 15562306a36Sopenharmony_ci 15662306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/pkey 15762306a36Sopenharmony_ciDate: June 17, 2006 15862306a36Sopenharmony_ciKernelVersion: 2.6.17 15962306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 16062306a36Sopenharmony_ciDescription: A 16-bit number representing the InfiniBand partition key used 16162306a36Sopenharmony_ci for communication with the SRP target. 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/req_lim 16462306a36Sopenharmony_ciDate: October 20, 2010 16562306a36Sopenharmony_ciKernelVersion: 2.6.36 16662306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 16762306a36Sopenharmony_ciDescription: Number of requests ib_srp can send to the target before it has 16862306a36Sopenharmony_ci to wait for more credits. For more information see also the 16962306a36Sopenharmony_ci SRP credit algorithm in the SRP specification. 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/service_id 17262306a36Sopenharmony_ciDate: June 17, 2006 17362306a36Sopenharmony_ciKernelVersion: 2.6.17 17462306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 17562306a36Sopenharmony_ciDescription: InfiniBand service ID used for establishing communication with 17662306a36Sopenharmony_ci the SRP target. 17762306a36Sopenharmony_ci 17862306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/sgid 17962306a36Sopenharmony_ciDate: February 1, 2014 18062306a36Sopenharmony_ciKernelVersion: 3.13 18162306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 18262306a36Sopenharmony_ciDescription: InfiniBand GID of the source port used for communication with 18362306a36Sopenharmony_ci the SRP target. 18462306a36Sopenharmony_ci 18562306a36Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/zero_req_lim 18662306a36Sopenharmony_ciDate: September 20, 2006 18762306a36Sopenharmony_ciKernelVersion: 2.6.18 18862306a36Sopenharmony_ciContact: linux-rdma@vger.kernel.org 18962306a36Sopenharmony_ciDescription: Number of times the initiator had to wait before sending a 19062306a36Sopenharmony_ci request to the target because it ran out of credits. For more 19162306a36Sopenharmony_ci information see also the SRP credit algorithm in the SRP 19262306a36Sopenharmony_ci specification. 193