Skip to contentSkip to conversation

cxgb3i -- documentation

PATCH In review Karen Xie 2 participants 3 messages Dec 7, 2008 – Dec 16, 2008

Subsystems (2)
lore
Share & tools
lore

Karen Xie

author
#0 lore raw

PATCH 3/3 cxgb3i -- documentation

[PATCH 3/3 2.6.29] cxgb3i -- documentation

From: Karen Xie <[email protected]>

- document cxgb3i driver's capablity and setup steps to be used with open-iscsi initiator.

---

 Documentation/scsi/cxgb3i.txt |   81 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/scsi/cxgb3i.txt
Documentation/scsi/cxgb3i.txt new file +81 -0
new file mode 100644
index 0000000..9456013
@@ -0,0 +1,81 @@
+Chelsio S3 iSCSI Driver for Linux
+
+Introduction
+============
+
+The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz cards, etc.
+series of products) supports iSCSI acceleration and iSCSI Direct Data Placement
+(DDP) where the hardware handles the expensive byte touching operations, such
+as CRC computation and verification, and direct DMA to the final host memory
+destination:
+
+	- iSCSI PDU digest generation and verification
+
+	  On transmitting, Chelsio S3 h/w computes and inserts the Header and
+	  Data digest into the PDUs.
+	  On receiving, Chelsio S3 h/w computes and verifies the Header and
+	  Data digest of the PDUs.
+
+	- Direct Data Placement (DDP)
+
+	  S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's
+	  payload into pre-posted final destination host-memory buffers based
+	  on the Initiator Task Tag (ITT) in Data-In or Target Task Tag (TTT)
+	  in Data-Out PDUs.
+
+	- PDU Transmit and Recovery
+
+	  On transmitting, S3 h/w accepts the complete PDU (header + data)
+	  from the host driver, computes and inserts the digests, decomposes
+	  the PDU into multiple TCP segments if necessary, and transmit all
+	  the TCP segments onto the wire. It handles TCP retransmission if
+	  needed.
+
+	  On receving, S3 h/w recovers the iSCSI PDU by reassembling TCP
+	  segments, separating the header and data, calculating and verifying
+	  the digests, then forwards the header to the host. The payload data,
+	  if possible, will be directly placed into the pre-posted host DDP
+	  buffer. Otherwise, the payload data will be sent to the host too.
+
+The cxgb3i driver interfaces with open-iscsi initiator and provides the iSCSI
+acceleration through Chelsio hardware wherever applicable.
+
+Using the cxgb3i Driver
+=======================
+
+The following steps need to be taken to accelerates the open-iscsi initiator:
+
+1. Load the cxgb3i driver: "modprobe cxgb3i"
+
+   The cxgb3i module registers a new transport class "cxgb3i" with open-iscsi.
+
+   * in the case of recompiling the kernel, the cxgb3i selection is located at
+	Device Drivers
+		SCSI device support --->
+			[*] SCSI low-level drivers  --->
+				<M>   Chelsio S3xx iSCSI support
+
+2. Create an interface file located under /etc/iscsi/ifaces/ for the new
+   transport class "cxgb3i".
+
+   The content of the file should be in the following format:
+	iface.transport_name = cxgb3i
+	iface.net_ifacename = <ethX>
+	iface.ipaddress = <iscsi ip address>
+
+   * if iface.ipaddress is specified, <iscsi ip address> needs to be either the
+	same as the ethX's ip address or an address on the same subnet. Make
+	sure the ip address is unique in the network.
+
+3. edit /etc/iscsi/iscsid.conf
+   The default setting for MaxRecvDataSegmentLength (131072) is too big, search
+   and replace all occurances of "xxx.iscsi.MaxRecvDataSegmentLength" to be a
+   value no bigger than 15872 (for example 8192):
+
+	discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 8192
+	node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192
+
+4. To direct open-iscsi traffic to go through cxgb3i's accelerated path,
+   "-I <iface file name>" option needs to be specified with most of the
+   iscsiadm command. <iface file name> is the transport interface file created
+   in step 2.
#1 lore raw
Quoted 21 lines · Karen Xie

[PATCH 3/3 2.6.29] cxgb3i -- documentation

From: Karen Xie <[email protected]>

- document cxgb3i driver's capablity and setup steps to be used with open-iscsi initiator.

---

 Documentation/scsi/cxgb3i.txt |   81 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/scsi/cxgb3i.txt
Documentation/scsi/cxgb3i.txt new file +0 -0
new file mode 100644
index 0000000..9456013

Documentation/scsi/cxgb3i.txt line 7

Quoted 7 lines
Documentation/scsi/cxgb3i.txt new file +7 -0
@@ -0,0 +1,81 @@
+Chelsio S3 iSCSI Driver for Linux
+
+Introduction
+============
+
+The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz cards, etc.
+series of products) supports iSCSI acceleration and iSCSI Direct Data Placement

support

Quoted 17 lines
Documentation/scsi/cxgb3i.txt new file +17 -0
+(DDP) where the hardware handles the expensive byte touching operations, such
+as CRC computation and verification, and direct DMA to the final host memory
+destination:
+
+	- iSCSI PDU digest generation and verification
+
+	  On transmitting, Chelsio S3 h/w computes and inserts the Header and
+	  Data digest into the PDUs.
+	  On receiving, Chelsio S3 h/w computes and verifies the Header and
+	  Data digest of the PDUs.
+
+	- Direct Data Placement (DDP)
+
+	  S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's
+	  payload into pre-posted final destination host-memory buffers based
+	  on the Initiator Task Tag (ITT) in Data-In or Target Task Tag (TTT)
+	  in Data-Out PDUs.

Documentation/scsi/cxgb3i.txt line 34

Quoted 10 lines
Documentation/scsi/cxgb3i.txt new file +10 -0
+
+	- PDU Transmit and Recovery
+
+	  On transmitting, S3 h/w accepts the complete PDU (header + data)
+	  from the host driver, computes and inserts the digests, decomposes
+	  the PDU into multiple TCP segments if necessary, and transmit all
+	  the TCP segments onto the wire. It handles TCP retransmission if
+	  needed.
+
+	  On receving, S3 h/w recovers the iSCSI PDU by reassembling TCP

receiving,

Documentation/scsi/cxgb3i.txt line 36

Quoted 2 lines
Documentation/scsi/cxgb3i.txt new file +2 -0
+	  segments, separating the header and data, calculating and verifying
+	  the digests, then forwards the header to the host. The payload data,

forwarding

Quoted 25 lines
Documentation/scsi/cxgb3i.txt new file +25 -0
+	  if possible, will be directly placed into the pre-posted host DDP
+	  buffer. Otherwise, the payload data will be sent to the host too.
+
+The cxgb3i driver interfaces with open-iscsi initiator and provides the iSCSI
+acceleration through Chelsio hardware wherever applicable.
+
+Using the cxgb3i Driver
+=======================
+
+The following steps need to be taken to accelerates the open-iscsi initiator:
+
+1. Load the cxgb3i driver: "modprobe cxgb3i"
+
+   The cxgb3i module registers a new transport class "cxgb3i" with open-iscsi.
+
+   * in the case of recompiling the kernel, the cxgb3i selection is located at
+	Device Drivers
+		SCSI device support --->
+			[*] SCSI low-level drivers  --->
+				<M>   Chelsio S3xx iSCSI support
+
+2. Create an interface file located under /etc/iscsi/ifaces/ for the new
+   transport class "cxgb3i".
+
+   The content of the file should be in the following format:

Documentation/scsi/cxgb3i.txt line 71

Quoted 10 lines
Documentation/scsi/cxgb3i.txt new file +10 -0
+	iface.transport_name = cxgb3i
+	iface.net_ifacename = <ethX>
+	iface.ipaddress = <iscsi ip address>
+
+   * if iface.ipaddress is specified, <iscsi ip address> needs to be either the
+	same as the ethX's ip address or an address on the same subnet. Make
+	sure the ip address is unique in the network.
+
+3. edit /etc/iscsi/iscsid.conf
+   The default setting for MaxRecvDataSegmentLength (131072) is too big, search
                                                                       big;

Documentation/scsi/cxgb3i.txt line 72

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+   and replace all occurances of "xxx.iscsi.MaxRecvDataSegmentLength" to be a

occurrences

Documentation/scsi/cxgb3i.txt line 81

Quoted 9 lines
Documentation/scsi/cxgb3i.txt new file +9 -0
+   value no bigger than 15872 (for example 8192):
+
+	discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 8192
+	node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192
+
+4. To direct open-iscsi traffic to go through cxgb3i's accelerated path,
+   "-I <iface file name>" option needs to be specified with most of the
+   iscsiadm command. <iface file name> is the transport interface file created
+   in step 2.

HTH.

~Randy

author
#2 lore raw

Thanks for the spell check. Will fix them.

Thanks,
Karen

-----Original Message-----
From: Randy Dunlap [mailto:[email protected]]
Sent: Sunday, December 14, 2008 4:46 PM
To: Karen Xie
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 3/3 2.6.29] cxgb3i -- documentation

Quoted 11 lines · Karen Xie

[PATCH 3/3 2.6.29] cxgb3i -- documentation

From: Karen Xie <[email protected]>

- document cxgb3i driver's capablity and setup steps to be used with open-iscsi initiator.

---

 Documentation/scsi/cxgb3i.txt |   81

+++++++++++++++++++++++++++++++++++++++++

Review

Quoted 5 lines
 1 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/scsi/cxgb3i.txt
(quoted diff) +0 -0

b/Documentation/scsi/cxgb3i.txt

Documentation/scsi/cxgb3i.txt line 6

Quoted 11 lines

new file mode 100644
index 0000000..9456013

Documentation/scsi/cxgb3i.txt new file +6 -0
@@ -0,0 +1,81 @@
+Chelsio S3 iSCSI Driver for Linux
+
+Introduction
+============
+
+The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz

cards, etc.

Documentation/scsi/cxgb3i.txt line 7

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+series of products) supports iSCSI acceleration and iSCSI Direct Data

Placement

support

Documentation/scsi/cxgb3i.txt line 8

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+(DDP) where the hardware handles the expensive byte touching

operations, such

Documentation/scsi/cxgb3i.txt line 9

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+as CRC computation and verification, and direct DMA to the final host

memory

Documentation/scsi/cxgb3i.txt

Quoted 5 lines
Documentation/scsi/cxgb3i.txt new file +5 -0
+destination:
+
+	- iSCSI PDU digest generation and verification
+
+	  On transmitting, Chelsio S3 h/w computes and inserts the

Header and

Documentation/scsi/cxgb3i.txt line 16

Quoted 2 lines
Documentation/scsi/cxgb3i.txt new file +2 -0
+	  Data digest into the PDUs.
+	  On receiving, Chelsio S3 h/w computes and verifies the Header

and

Documentation/scsi/cxgb3i.txt

Quoted 6 lines
Documentation/scsi/cxgb3i.txt new file +6 -0
+	  Data digest of the PDUs.
+
+	- Direct Data Placement (DDP)
+
+	  S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's
+	  payload into pre-posted final destination host-memory buffers

based

Documentation/scsi/cxgb3i.txt line 23

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  on the Initiator Task Tag (ITT) in Data-In or Target Task Tag

(TTT)

Documentation/scsi/cxgb3i.txt

Quoted 5 lines
Documentation/scsi/cxgb3i.txt new file +5 -0
+	  in Data-Out PDUs.
+
+	- PDU Transmit and Recovery
+
+	  On transmitting, S3 h/w accepts the complete PDU (header +

data)

Documentation/scsi/cxgb3i.txt line 29

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  from the host driver, computes and inserts the digests,

decomposes

Documentation/scsi/cxgb3i.txt line 30

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  the PDU into multiple TCP segments if necessary, and transmit

all

Documentation/scsi/cxgb3i.txt line 31

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  the TCP segments onto the wire. It handles TCP retransmission

if

Documentation/scsi/cxgb3i.txt line 34

Quoted 3 lines
Documentation/scsi/cxgb3i.txt new file +3 -0
+	  needed.
+
+	  On receving, S3 h/w recovers the iSCSI PDU by reassembling TCP

receiving,

Documentation/scsi/cxgb3i.txt line 35

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  segments, separating the header and data, calculating and

verifying

Documentation/scsi/cxgb3i.txt line 36

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  the digests, then forwards the header to the host. The payload

data,

forwarding

Documentation/scsi/cxgb3i.txt line 37

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  if possible, will be directly placed into the pre-posted host

DDP

Documentation/scsi/cxgb3i.txt line 38

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	  buffer. Otherwise, the payload data will be sent to the host

too.

Documentation/scsi/cxgb3i.txt line 40

Quoted 2 lines
Documentation/scsi/cxgb3i.txt new file +2 -0
+
+The cxgb3i driver interfaces with open-iscsi initiator and provides

the iSCSI

Documentation/scsi/cxgb3i.txt

Quoted 6 lines
Documentation/scsi/cxgb3i.txt new file +6 -0
+acceleration through Chelsio hardware wherever applicable.
+
+Using the cxgb3i Driver
+=======================
+
+The following steps need to be taken to accelerates the open-iscsi

initiator:

Documentation/scsi/cxgb3i.txt

Quoted 4 lines
Documentation/scsi/cxgb3i.txt new file +4 -0
+
+1. Load the cxgb3i driver: "modprobe cxgb3i"
+
+   The cxgb3i module registers a new transport class "cxgb3i" with

open-iscsi.

Documentation/scsi/cxgb3i.txt line 52

Quoted 2 lines
Documentation/scsi/cxgb3i.txt new file +2 -0
+
+   * in the case of recompiling the kernel, the cxgb3i selection is

located at

Documentation/scsi/cxgb3i.txt

Quoted 6 lines
Documentation/scsi/cxgb3i.txt new file +6 -0
+	Device Drivers
+		SCSI device support --->
+			[*] SCSI low-level drivers  --->
+				<M>   Chelsio S3xx iSCSI support
+
+2. Create an interface file located under /etc/iscsi/ifaces/ for the

new

Documentation/scsi/cxgb3i.txt

Quoted 8 lines
Documentation/scsi/cxgb3i.txt new file +8 -0
+   transport class "cxgb3i".
+
+   The content of the file should be in the following format:
+	iface.transport_name = cxgb3i
+	iface.net_ifacename = <ethX>
+	iface.ipaddress = <iscsi ip address>
+
+   * if iface.ipaddress is specified, <iscsi ip address> needs to be

either the

Documentation/scsi/cxgb3i.txt line 67

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+	same as the ethX's ip address or an address on the same subnet.

Make

Documentation/scsi/cxgb3i.txt

Quoted 4 lines
Documentation/scsi/cxgb3i.txt new file +4 -0
+	sure the ip address is unique in the network.
+
+3. edit /etc/iscsi/iscsid.conf
+   The default setting for MaxRecvDataSegmentLength (131072) is too

big, search

big;

Documentation/scsi/cxgb3i.txt line 72

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+   and replace all occurances of "xxx.iscsi.MaxRecvDataSegmentLength"

to be a

occurrences

Documentation/scsi/cxgb3i.txt

Quoted 6 lines
Documentation/scsi/cxgb3i.txt new file +6 -0
+   value no bigger than 15872 (for example 8192):
+
+	discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 8192
+	node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192
+
+4. To direct open-iscsi traffic to go through cxgb3i's accelerated

path,

Documentation/scsi/cxgb3i.txt line 79

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+   "-I <iface file name>" option needs to be specified with most of

the

Documentation/scsi/cxgb3i.txt line 80

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+   iscsiadm command. <iface file name> is the transport interface

file created

Documentation/scsi/cxgb3i.txt line 81

Quoted 1 line
Documentation/scsi/cxgb3i.txt new file +1 -0
+   in step 2.

HTH.

~Randy