18c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/add_target 28c2ecf20Sopenharmony_ciDate: January 2, 2006 38c2ecf20Sopenharmony_ciKernelVersion: 2.6.15 48c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 58c2ecf20Sopenharmony_ciDescription: Interface for making ib_srp connect to a new target. 68c2ecf20Sopenharmony_ci One can request ib_srp to connect to a new target by writing 78c2ecf20Sopenharmony_ci a comma-separated list of login parameters to this sysfs 88c2ecf20Sopenharmony_ci attribute. The supported parameters are: 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci * id_ext, a 16-digit hexadecimal number specifying the eight 118c2ecf20Sopenharmony_ci byte identifier extension in the 16-byte SRP target port 128c2ecf20Sopenharmony_ci identifier. The target port identifier is sent by ib_srp 138c2ecf20Sopenharmony_ci to the target in the SRP_LOGIN_REQ request. 148c2ecf20Sopenharmony_ci * ioc_guid, a 16-digit hexadecimal number specifying the eight 158c2ecf20Sopenharmony_ci byte I/O controller GUID portion of the 16-byte target port 168c2ecf20Sopenharmony_ci identifier. 178c2ecf20Sopenharmony_ci * dgid, a 32-digit hexadecimal number specifying the 188c2ecf20Sopenharmony_ci destination GID. 198c2ecf20Sopenharmony_ci * pkey, a four-digit hexadecimal number specifying the 208c2ecf20Sopenharmony_ci InfiniBand partition key. 218c2ecf20Sopenharmony_ci * service_id, a 16-digit hexadecimal number specifying the 228c2ecf20Sopenharmony_ci InfiniBand service ID used to establish communication with 238c2ecf20Sopenharmony_ci the SRP target. How to find out the value of the service ID 248c2ecf20Sopenharmony_ci is specified in the documentation of the SRP target. 258c2ecf20Sopenharmony_ci * max_sect, a decimal number specifying the maximum number of 268c2ecf20Sopenharmony_ci 512-byte sectors to be transferred via a single SCSI command. 278c2ecf20Sopenharmony_ci * max_cmd_per_lun, a decimal number specifying the maximum 288c2ecf20Sopenharmony_ci number of outstanding commands for a single LUN. 298c2ecf20Sopenharmony_ci * io_class, a hexadecimal number specifying the SRP I/O class. 308c2ecf20Sopenharmony_ci Must be either 0xff00 (rev 10) or 0x0100 (rev 16a). The I/O 318c2ecf20Sopenharmony_ci class defines the format of the SRP initiator and target 328c2ecf20Sopenharmony_ci port identifiers. 338c2ecf20Sopenharmony_ci * initiator_ext, a 16-digit hexadecimal number specifying the 348c2ecf20Sopenharmony_ci identifier extension portion of the SRP initiator port 358c2ecf20Sopenharmony_ci identifier. This data is sent by the initiator to the target 368c2ecf20Sopenharmony_ci in the SRP_LOGIN_REQ request. 378c2ecf20Sopenharmony_ci * cmd_sg_entries, a number in the range 1..255 that specifies 388c2ecf20Sopenharmony_ci the maximum number of data buffer descriptors stored in the 398c2ecf20Sopenharmony_ci SRP_CMD information unit itself. With allow_ext_sg=0 the 408c2ecf20Sopenharmony_ci parameter cmd_sg_entries defines the maximum S/G list length 418c2ecf20Sopenharmony_ci for a single SRP_CMD, and commands whose S/G list length 428c2ecf20Sopenharmony_ci exceeds this limit after S/G list collapsing will fail. 438c2ecf20Sopenharmony_ci * allow_ext_sg, whether ib_srp is allowed to include a partial 448c2ecf20Sopenharmony_ci memory descriptor list in an SRP_CMD instead of the entire 458c2ecf20Sopenharmony_ci list. If a partial memory descriptor list has been included 468c2ecf20Sopenharmony_ci in an SRP_CMD the remaining memory descriptors are 478c2ecf20Sopenharmony_ci communicated from initiator to target via an additional RDMA 488c2ecf20Sopenharmony_ci transfer. Setting allow_ext_sg to 1 increases the maximum 498c2ecf20Sopenharmony_ci amount of data that can be transferred between initiator and 508c2ecf20Sopenharmony_ci target via a single SCSI command. Since not all SRP target 518c2ecf20Sopenharmony_ci implementations support partial memory descriptor lists the 528c2ecf20Sopenharmony_ci default value for this option is 0. 538c2ecf20Sopenharmony_ci * sg_tablesize, a number in the range 1..2048 specifying the 548c2ecf20Sopenharmony_ci maximum S/G list length the SCSI layer is allowed to pass to 558c2ecf20Sopenharmony_ci ib_srp. Specifying a value that exceeds cmd_sg_entries is 568c2ecf20Sopenharmony_ci only safe with partial memory descriptor list support enabled 578c2ecf20Sopenharmony_ci (allow_ext_sg=1). 588c2ecf20Sopenharmony_ci * comp_vector, a number in the range 0..n-1 specifying the 598c2ecf20Sopenharmony_ci MSI-X completion vector of the first RDMA channel. Some 608c2ecf20Sopenharmony_ci HCA's allocate multiple (n) MSI-X vectors per HCA port. If 618c2ecf20Sopenharmony_ci the IRQ affinity masks of these interrupts have been 628c2ecf20Sopenharmony_ci configured such that each MSI-X interrupt is handled by a 638c2ecf20Sopenharmony_ci different CPU then the comp_vector parameter can be used to 648c2ecf20Sopenharmony_ci spread the SRP completion workload over multiple CPU's. 658c2ecf20Sopenharmony_ci * tl_retry_count, a number in the range 2..7 specifying the 668c2ecf20Sopenharmony_ci IB RC retry count. 678c2ecf20Sopenharmony_ci * queue_size, the maximum number of commands that the 688c2ecf20Sopenharmony_ci initiator is allowed to queue per SCSI host. The default 698c2ecf20Sopenharmony_ci value for this parameter is 62. The lowest supported value 708c2ecf20Sopenharmony_ci is 2. 718c2ecf20Sopenharmony_ci * max_it_iu_size, a decimal number specifying the maximum 728c2ecf20Sopenharmony_ci initiator to target information unit length. 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/ibdev 758c2ecf20Sopenharmony_ciDate: January 2, 2006 768c2ecf20Sopenharmony_ciKernelVersion: 2.6.15 778c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 788c2ecf20Sopenharmony_ciDescription: HCA name (<hca>). 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_srp/srp-<hca>-<port_number>/port 818c2ecf20Sopenharmony_ciDate: January 2, 2006 828c2ecf20Sopenharmony_ciKernelVersion: 2.6.15 838c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 848c2ecf20Sopenharmony_ciDescription: HCA port number (<port_number>). 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/allow_ext_sg 878c2ecf20Sopenharmony_ciDate: May 19, 2011 888c2ecf20Sopenharmony_ciKernelVersion: 2.6.39 898c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 908c2ecf20Sopenharmony_ciDescription: Whether ib_srp is allowed to include a partial memory 918c2ecf20Sopenharmony_ci descriptor list in an SRP_CMD when communicating with an SRP 928c2ecf20Sopenharmony_ci target. 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/ch_count 958c2ecf20Sopenharmony_ciDate: April 1, 2015 968c2ecf20Sopenharmony_ciKernelVersion: 3.19 978c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 988c2ecf20Sopenharmony_ciDescription: Number of RDMA channels used for communication with the SRP 998c2ecf20Sopenharmony_ci target. 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/cmd_sg_entries 1028c2ecf20Sopenharmony_ciDate: May 19, 2011 1038c2ecf20Sopenharmony_ciKernelVersion: 2.6.39 1048c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1058c2ecf20Sopenharmony_ciDescription: Maximum number of data buffer descriptors that may be sent to 1068c2ecf20Sopenharmony_ci the target in a single SRP_CMD request. 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/comp_vector 1098c2ecf20Sopenharmony_ciDate: September 2, 2013 1108c2ecf20Sopenharmony_ciKernelVersion: 3.11 1118c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1128c2ecf20Sopenharmony_ciDescription: Completion vector used for the first RDMA channel. 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/dgid 1158c2ecf20Sopenharmony_ciDate: June 17, 2006 1168c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1178c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1188c2ecf20Sopenharmony_ciDescription: InfiniBand destination GID used for communication with the SRP 1198c2ecf20Sopenharmony_ci target. Differs from orig_dgid if port redirection has happened. 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/id_ext 1228c2ecf20Sopenharmony_ciDate: June 17, 2006 1238c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1248c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1258c2ecf20Sopenharmony_ciDescription: Eight-byte identifier extension portion of the 16-byte target 1268c2ecf20Sopenharmony_ci port identifier. 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/ioc_guid 1298c2ecf20Sopenharmony_ciDate: June 17, 2006 1308c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1318c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1328c2ecf20Sopenharmony_ciDescription: Eight-byte I/O controller GUID portion of the 16-byte target 1338c2ecf20Sopenharmony_ci port identifier. 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/local_ib_device 1368c2ecf20Sopenharmony_ciDate: November 29, 2006 1378c2ecf20Sopenharmony_ciKernelVersion: 2.6.19 1388c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1398c2ecf20Sopenharmony_ciDescription: Name of the InfiniBand HCA used for communicating with the 1408c2ecf20Sopenharmony_ci SRP target. 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/local_ib_port 1438c2ecf20Sopenharmony_ciDate: November 29, 2006 1448c2ecf20Sopenharmony_ciKernelVersion: 2.6.19 1458c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1468c2ecf20Sopenharmony_ciDescription: Number of the HCA port used for communicating with the 1478c2ecf20Sopenharmony_ci SRP target. 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/orig_dgid 1508c2ecf20Sopenharmony_ciDate: June 17, 2006 1518c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1528c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1538c2ecf20Sopenharmony_ciDescription: InfiniBand destination GID specified in the parameters 1548c2ecf20Sopenharmony_ci written to the add_target sysfs attribute. 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/pkey 1578c2ecf20Sopenharmony_ciDate: June 17, 2006 1588c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1598c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1608c2ecf20Sopenharmony_ciDescription: A 16-bit number representing the InfiniBand partition key used 1618c2ecf20Sopenharmony_ci for communication with the SRP target. 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/req_lim 1648c2ecf20Sopenharmony_ciDate: October 20, 2010 1658c2ecf20Sopenharmony_ciKernelVersion: 2.6.36 1668c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1678c2ecf20Sopenharmony_ciDescription: Number of requests ib_srp can send to the target before it has 1688c2ecf20Sopenharmony_ci to wait for more credits. For more information see also the 1698c2ecf20Sopenharmony_ci SRP credit algorithm in the SRP specification. 1708c2ecf20Sopenharmony_ci 1718c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/service_id 1728c2ecf20Sopenharmony_ciDate: June 17, 2006 1738c2ecf20Sopenharmony_ciKernelVersion: 2.6.17 1748c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1758c2ecf20Sopenharmony_ciDescription: InfiniBand service ID used for establishing communication with 1768c2ecf20Sopenharmony_ci the SRP target. 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/sgid 1798c2ecf20Sopenharmony_ciDate: February 1, 2014 1808c2ecf20Sopenharmony_ciKernelVersion: 3.13 1818c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1828c2ecf20Sopenharmony_ciDescription: InfiniBand GID of the source port used for communication with 1838c2ecf20Sopenharmony_ci the SRP target. 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_ciWhat: /sys/class/scsi_host/host<n>/zero_req_lim 1868c2ecf20Sopenharmony_ciDate: September 20, 2006 1878c2ecf20Sopenharmony_ciKernelVersion: 2.6.18 1888c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1898c2ecf20Sopenharmony_ciDescription: Number of times the initiator had to wait before sending a 1908c2ecf20Sopenharmony_ci request to the target because it ran out of credits. For more 1918c2ecf20Sopenharmony_ci information see also the SRP credit algorithm in the SRP 1928c2ecf20Sopenharmony_ci specification. 193