cxgb3i.txt 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Chelsio S3 iSCSI Driver for Linux
  2. Introduction
  3. ============
  4. The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz cards, etc.
  5. series of products) support iSCSI acceleration and iSCSI Direct Data Placement
  6. (DDP) where the hardware handles the expensive byte touching operations, such
  7. as CRC computation and verification, and direct DMA to the final host memory
  8. destination:
  9. - iSCSI PDU digest generation and verification
  10. On transmitting, Chelsio S3 h/w computes and inserts the Header and
  11. Data digest into the PDUs.
  12. On receiving, Chelsio S3 h/w computes and verifies the Header and
  13. Data digest of the PDUs.
  14. - Direct Data Placement (DDP)
  15. S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's
  16. payload into pre-posted final destination host-memory buffers based
  17. on the Initiator Task Tag (ITT) in Data-In or Target Task Tag (TTT)
  18. in Data-Out PDUs.
  19. - PDU Transmit and Recovery
  20. On transmitting, S3 h/w accepts the complete PDU (header + data)
  21. from the host driver, computes and inserts the digests, decomposes
  22. the PDU into multiple TCP segments if necessary, and transmit all
  23. the TCP segments onto the wire. It handles TCP retransmission if
  24. needed.
  25. On receiving, S3 h/w recovers the iSCSI PDU by reassembling TCP
  26. segments, separating the header and data, calculating and verifying
  27. the digests, then forwarding the header to the host. The payload data,
  28. if possible, will be directly placed into the pre-posted host DDP
  29. buffer. Otherwise, the payload data will be sent to the host too.
  30. The cxgb3i driver interfaces with open-iscsi initiator and provides the iSCSI
  31. acceleration through Chelsio hardware wherever applicable.
  32. Using the cxgb3i Driver
  33. =======================
  34. The following steps need to be taken to accelerates the open-iscsi initiator:
  35. 1. Load the cxgb3i driver: "modprobe cxgb3i"
  36. The cxgb3i module registers a new transport class "cxgb3i" with open-iscsi.
  37. * in the case of recompiling the kernel, the cxgb3i selection is located at
  38. Device Drivers
  39. SCSI device support --->
  40. [*] SCSI low-level drivers --->
  41. <M> Chelsio S3xx iSCSI support
  42. 2. Create an interface file located under /etc/iscsi/ifaces/ for the new
  43. transport class "cxgb3i".
  44. The content of the file should be in the following format:
  45. iface.transport_name = cxgb3i
  46. iface.net_ifacename = <ethX>
  47. iface.ipaddress = <iscsi ip address>
  48. * if iface.ipaddress is specified, <iscsi ip address> needs to be either the
  49. same as the ethX's ip address or an address on the same subnet. Make
  50. sure the ip address is unique in the network.
  51. 3. edit /etc/iscsi/iscsid.conf
  52. The default setting for MaxRecvDataSegmentLength (131072) is too big;
  53. replace with a value no bigger than 15360 (for example 8192):
  54. node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192
  55. * The login would fail for a normal session if MaxRecvDataSegmentLength is
  56. too big. A error message in the format of
  57. "cxgb3i: ERR! MaxRecvSegmentLength <X> too big. Need to be <= <Y>."
  58. would be logged to dmesg.
  59. 4. To direct open-iscsi traffic to go through cxgb3i's accelerated path,
  60. "-I <iface file name>" option needs to be specified with most of the
  61. iscsiadm command. <iface file name> is the transport interface file created
  62. in step 2.