**************************************** README **************************************** Chelsio Unified Wire for Linux Version : 3.1.0.0 (Beta) Date : 12/05/2016 Overview ================================================================================ Chelsio Unified Wire software for Linux is an easy to use utility developed to provide installation of 64-bit Linux based drivers and tools for Chelsio's Unified Wire adapters. The Chelsio Unified Wire package provides an interactive installer to install various drivers and utilities. It consists of the following components: - Network (NIC/TOE) - Virtual Function Network (vNIC) - iWARP (RDMA) - iSER - WD-UDP - NVMe-oF - LIO iSCSI Target Offload Driver - iSCSI PDU Offload Target - iSCSI PDU Offload Initiator - Crypto Offload - Data Center Bridging (DCB) - FCoE Full Offload Initiator - Offload Bonding driver - Offload Multi-Adapter Failover(MAFO) - UDP Segmentation Offload and Pacing - Offload IPv6 driver - Classification and Filtering feature - Traffic Management feature (TM) - Unified Wire Manager (UM) - Unified Boot Software - Utility Tools (cop,cxgbtool,t4_perftune,benchmark tools,sniffer & tracer) - libs (iWARP and WD-UDP libraries) ================================================================================ CONTENTS ================================================================================ - 1. Requirements - 2. Supported Operating Systems - 3. Supported Cards - 4. How To Use - 5. Support Documentation - 6. Customer Support 1. Requirements ================================================================================ Network (NIC/TOE) ----------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Virtual Function Network (vNIC) ------------------------------- - Chelsio adapter and an SR-IOV enabled system with supported platforms mentioned in section 2. iWARP (RDMA) ------------ - Chelsio adapter and system with supported platforms mentioned in section 2. - If you are planning to upgrade OFED on one member of the cluster, the upgrade needs to be installed on all the members. - If you want to install OFED with NFS-RDMA support, please see "Setting up NFS-RDMA" in iWARP (RDMA) chapter in the User's Guide. iSER ---- - Chelsio adapter and system with supported platforms mentioned in section 2. WD-UDP ------ - Chelsio adapter and system with supported platforms mentioned in section 2. NVMe-oF ------- - Chelsio adapter and system with supported platforms mentioned in section 2. - openssl-devel,bzip2-devel,zlib-devel,ncurses-devel,sqlite-devel,libudev-devel packages for setuptools (nvmetcli utility) should be installed. - Python v2.7 or above. If Python v2.7 is not already present in the system, or if an older version exists, v2.7.10 provided in the package will be installed. - Enable the following parameters in the kernel configuration file: CONFIG_BLK_DEV_NVME=m CONFIG_NVME_RDMA=m CONFIG_NVME_TARGET=m CONFIG_NVME_TARGET_RDMA=m CONFIG_NVME_RDMA=m CONFIG_BLK_DEV_NULL_BLK=m CONFIG_CONFIGFS_FS=y LIO iSCSI Target Offload Driver ------------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. - The driver requires the following components to be installed to function. If not already present in the system, the components provided in the package will be installed. - Python v2.7 or above* (v2.7.10 provided in the package) - TargetCLI* (v2.1 provided in the package) - OpenSSL (Download from https://www.openssl.org/source/) iSCSI PDU Offload Target ------------------------ - Chelsio adapter and system with supported platforms mentioned in section 2. - iSCSI PDU offload target driver (chiscsi_t4.ko) requires NIC (cxgb4), TOE (t4_tom & toecore) and iSCSI non-offload (chiscsi_base.ko) modules to work. Whereas the iSCSI non-offload target driver requires only NIC module. iSCSI PDU Offload Initiator -------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. - The iSCSI PDU Offload Initiator driver (cxgb4i) runs on top of NIC module (cxgb4) and open-iscsi-2.0-872/873 only, on a Chelsio card. - If you're planning to install iSCSI PDU Offload Initiator, please install openssl-devel package. Crypto Offload -------------- - Chelsio adapter and system with supported platforms mentioned in section 2. - Compile the kernel with crypto support with the following parameters set as: CONFIG_KEYS=y CONFIG_KEYS_DEBUG_PROC_KEYS=y CONFIG_SECURITY=y CONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_NETWORK_XFRM=y CONFIG_LSM_MMAP_MIN_ADDR=65536 CONFIG_SECURITY_SELINUX=y CONFIG_SECURITY_SELINUX_BOOTPARAM=y CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1 CONFIG_SECURITY_SELINUX_DISABLE=y CONFIG_SECURITY_SELINUX_DEVELOP=y CONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 CONFIG_DEFAULT_SECURITY_SELINUX=y CONFIG_DEFAULT_SECURITY="selinux" CONFIG_CRYPTO=y CONFIG_CRYPTO_FIPS=y CONFIG_CRYPTO_ALGAPI=y CONFIG_CRYPTO_ALGAPI2=y CONFIG_CRYPTO_AEAD=y CONFIG_CRYPTO_AEAD2=y CONFIG_CRYPTO_BLKCIPHER=y CONFIG_CRYPTO_BLKCIPHER2=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_RNG=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_PCOMP=y CONFIG_CRYPTO_PCOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y CONFIG_CRYPTO_NULL=y CONFIG_CRYPTO_WORKQUEUE=y CONFIG_CRYPTO_CRYPTD=y CONFIG_CRYPTO_AUTHENC=y CONFIG_CRYPTO_TEST=m CONFIG_CRYPTO_CCM=y CONFIG_CRYPTO_GCM=y CONFIG_CRYPTO_SEQIV=y CONFIG_CRYPTO_CBC=y CONFIG_CRYPTO_CTR=y CONFIG_CRYPTO_CTS=y CONFIG_CRYPTO_ECB=y CONFIG_CRYPTO_XTS=y CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_GHASH=y CONFIG_CRYPTO_MD4=m CONFIG_CRYPTO_MD5=y CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_SHA256=y CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_AES=y CONFIG_CRYPTO_AES_X86_64=y CONFIG_CRYPTO_DEFLATE=y CONFIG_CRYPTO_ZLIB=y CONFIG_CRYPTO_LZO=y CONFIG_CRYPTO_ANSI_CPRNG=y CONFIG_CRYPTO_USER_API=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_USER_API_SKCIPHER=y CONFIG_CRYPTO_HW=y Data Center Bridging (DCB) -------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. FCoE full offload Initiator --------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Offload Bonding driver --------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Offload Multi-Adapter Failover ------------------------------ - Chelsio adapter and system with supported platforms mentioned in section 2. UDP Segmentation Offload and Pacing driver ----------------------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Offload IPv6 driver ------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Classification and Filtering ---------------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Traffic Management ------------------ - Chelsio adapter and system with supported platforms mentioned in section 2. Unified Wire Manager -------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. Unified Boot Software --------------------- - Chelsio adapter and system with supported platforms mentioned in section 2. - DOS bootable USB flash drive or Floppy Disk. 2. Supported Operating Systems ================================================================================ The Chelsio Unified Wire software has been developed to run on 64-bit Linux based platforms. Following is the list of Drivers/Software and supported Linux distributions. 1. x86_64 Architecture ====================== |########################|#####################################################| | Linux Distribution | Driver/Software | |########################|#####################################################| |RHEL 7.3, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |3.10.0-514.el7 |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |RHEL 7.2, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |3.10.0-327.el7 |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |RHEL 6.8, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |2.6.32-642.el6 |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |RHEL 6.7, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |2.6.32-573.el6 |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |SLES 12 SP2, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |4.4.21-69-default |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |SLES 12 SP1, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |3.12.49-11-default |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |SLES 11 SP4, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |3.0.101-63-default |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM,uBoot^ | |------------------------|-----------------------------------------------------| |Ubuntu 16.04.1, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |4.4.0-47-generic |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM | |------------------------|-----------------------------------------------------| |Ubuntu-14.04.4, |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | |4.2.0-27-generic |iSCSI Initiator,DCB,FCoE Initiator,Bonding,MAFO, | | |UDP-SO,IPv6,Sniffer & Tracer,Filtering,TM | |------------------------|-----------------------------------------------------| |Kernel.org linux-4.8 |NIC/TOE,vNIC,iWARP,iSER*,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator, | | |Crypto,DCB,FCoE Initiator,Bonding,MAFO,IPv6, | | |Sniffer & Tracer,Filtering,TM | |------------------------------------------------------------------------------| * Kernel compiled on RHEL 7.X distribution. ^ PXE,FCoE,iSCSI NOTE: Other kernel versions have not been tested and are not guaranteed to work. 2. POWERPC64 Architecture ========================= |########################|#####################################################| | Linux Distribution | Driver/Software | |########################|#####################################################| |RHEL 7.3 (POWER8), |NIC/TOE,iWARP,iSCSI Target,iSCSI Initiator,Bonding, | |3.10.0-514.el7.ppc64le |MAFO,IPv6,Filtering,TM | |------------------------------------------------------------------------------| NOTE: Other kernel versions have not been tested and are not guaranteed to work. 3. ARM64 Architecture ===================== |########################|#####################################################| | Linux Distribution | Driver/Software | |########################|#####################################################| |RHEL 7.3 (ARM64), |NIC/TOE,iWARP,iSCSI Target,iSCSI Initiator,Bonding, | |4.5.0-15.el7.aarch64 |MAFO,IPv6,Filtering,TM | |------------------------------------------------------------------------------| NOTE: Other kernel versions have not been tested and are not guaranteed to work. 3. Supported Hardware ================================================================================ 1.Chelsio Drivers/Software and supported adapters ================================================= |########################|#####################################################| | Chelsio Adapter | Driver/Software | |########################|#####################################################| |------------------------|-----------------------------------------------------| |T62100-LP-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF,iSCSI Target, | | |LIO iSCSI Target,iSCSI Initiator,Crypto,DCB,Bonding, | | |IPv6,Filtering,TM,uBoot* | |------------------------|-----------------------------------------------------| |T6225-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF,iSCSI Target, | | |LIO iSCSI Target,iSCSI Initiator,Crypto,DCB,Bonding, | | |IPv6,Filtering,TM,uBoot* | |------------------------|-----------------------------------------------------| |T580-OCP-SO |NIC,uBoot(PXE) | |------------------------|-----------------------------------------------------| |T520-OCP-SO |NIC,uBoot(PXE) | |------------------------|-----------------------------------------------------| |T520-BT |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator, | | |FCoE Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM,uBoot* | |------------------------|-----------------------------------------------------| |T580-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator,DCB, | | |Bonding,MAFO,IPv6,Sniffer & Tracer,UDP-SO,Filtering, | | |TM,UM,uBoot* | |------------------------|-----------------------------------------------------| |T580-SO-CR |NIC,Filtering,uBoot(PXE) | |------------------------|-----------------------------------------------------| |T580-LP-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator,DCB, | | |Bonding,MAFO,IPv6,Sniffer & Tracer,UDP-SO,Filtering, | | |TM,UM,uBoot* | |------------------------|-----------------------------------------------------| |T520-LL-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator,DCB, | | |FCoE Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM,uBoot* | |------------------------|-----------------------------------------------------| |T520-SO-CR |NIC,uBoot(PXE) | |------------------------|-----------------------------------------------------| |T520-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target, iSCSI Target,iSCSI Initiator,DCB, | | |FCoE Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM,uBoot* | |------------------------|-----------------------------------------------------| |T540-CR |NIC/TOE,vNIC,iWARP,iSER,WD-UDP,NVMe-oF, | | |LIO iSCSI Target,iSCSI Target,iSCSI Initiator,UDP-SO,| | |Bonding,MAFO,IPv6,Sniffer & Tracer,Filtering,uBoot* | |------------------------|-----------------------------------------------------| |T420-CR |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,DCB,Bonding,MAFO,IPv6, | | |Sniffer & Tracer,UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T440-CR |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T422-CR |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T420-SO-CR |NIC,vNIC,Bonding,MAFO,IPv6,Filtering,UM | |------------------------|-----------------------------------------------------| |T404-BT |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T420-BCH |NIC/TOE,iSCSI Target,iSCSI Initiator, | | |Bonding,MAFO,IPv6,Sniffer & Tracer,UDP-SO,Filtering, | | |TM,UM | |------------------------|-----------------------------------------------------| |T440-LP-CR |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T420-BT |NIC/TOE,vNIC,iSCSI Target,iSCSI Initiator,Bonding, | | |MAFO,IPv6,Sniffer & Tracer,UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T420-LL-CR |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,DCB,Bonding,MAFO,IPv6, | | |Sniffer & Tracer,UDP-SO,Filtering,TM,UM | |------------------------|-----------------------------------------------------| |T420-CX |NIC/TOE,vNIC,iWARP,WD-UDP,iSCSI Target, | | |iSCSI Initiator,Bonding,MAFO,IPv6,Sniffer & Tracer, | | |UDP-SO,Filtering,TM,UM | |------------------------------------------------------------------------------| * PXE,FCoE,iSCSI 2. Unified Wire Manager (UM) ============================ Supported T3 adapters --------------------- - S302E - S302E-C - S310E-CR - S310E-CR-C - S310E-CXA - S310E-SR+ - S310E-SR - S310E-BT - S320E-CR - S320E-LP-CR - S320E-CXA - S320EM-BS - S320EM-BCH - N320E-G2-CR - N320E - N320E-CXA - N320E-BT - N310E - N310E-CXA 3. Unified Boot Software ======================== Supported hardware platforms ---------------------------- - DELL PowerEdge T710 - DELL PowerEdge 2950 - DELL PowerEdge T110 - Dell T5600 - IBM X3650 M2 - IBM X3650 M4* - HP ProLiant DL385G2 - Supermicro X7DWE - Supermicro X8DTE-F - Supermicro X8STE - Supermicro X8DT6 - Supermicro X9SRL-F - Supermicro X9SRE-3F - ASUS P5KPL - ASUS P8Z68 * If system BIOS version is lower than 1.5 and both Legacy and uEFI are enabled, please upgrade to 1.5 or higher. Otherwise the system will hang during POST. Supported Switches ------------------- - Cisco Nexus 5010 with 5.1(3)N1(1a) firmware - Arista DCS-7124S-F - Mellanox SX_PPC_M460EX NOTE:Other platforms/switches have not been tested and are not guaranteed to work. 4. How to Use ================================================================================ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chelsio Unified Wire ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Installing Chelsio Unified Wire ================================== There are two main methods to install the Chelsio Unified Wire package: from source and from RPM. If you decide to use source, you can install the package using CLI or GUI mode. If you decide to use RPM, you can install the package using Menu or CLI mode. The following table describes the various "configuration tuning options" available during installation and drivers/software installed with each option by default: |#######################################|######################################| | Configuration Tuning Option | Driver/Software installed | |#######################################|######################################| |Unified Wire |NIC/TOE,vNIC,iWARP,iSER,WD-UDP, | | |NVMe-oF,LIO iSCSI Target,iSCSI Target,| | |iSCSI Initiator,Crypto,IPv6, | | |Sniffer & Tracer,FCoE Initiator,DCB, | | |Bonding,MAFO,UM(Agent,Client,WebGUI), | | |Filtering,TM | |---------------------------------------|--------------------------------------| |Low latency Networking (T4/T5) |NIC/TOE,iWARP,WD-UDP,IPv6, | | |Sniffer & Tracer,Bonding,MAFO, | | |UM(Agent,Client,WebGUI),Filtering,TM | |---------------------------------------|--------------------------------------| |High capacity RDMA (T4/T5) |NIC/TOE,iWARP,WD-UDP,Bonding,MAFO, | | |IPv6,Sniffer & Tracer, | | |UM(Agent,Client,WebGUI),Filtering,TM | |---------------------------------------|--------------------------------------| |RDMA Performance (T4/T5) |NIC/TOE,iWARP,UM(Agent,Client,WebGUI) | |---------------------------------------|--------------------------------------| |High capacity TOE (T4/T5) |NIC/TOE,Bonding,MAFO,IPv6, | | |UM(Agent,Client,WebGUI),Filtering,TM | |---------------------------------------|--------------------------------------| |iSCSI Performance (T5) |NIC/TOE,LIO iSCSI Target,iSCSI Target,| | |iSCSI Initiator,DCB,Bonding, | | |UM(Agent,Client,WebGUI) | |---------------------------------------|--------------------------------------| |UDP Seg.Offload & Pacing (T4/T5) |NIC/TOE,IPv6,USO,Bonding, | | |UM(Agent,Client,WebGUI),Filtering,TM | |---------------------------------------|--------------------------------------| |Wire Direct Latency (T5) |NIC/TOE,iWARP,WD-UDP, | | |UM(Agent,Client,WebGUI) | |---------------------------------------|--------------------------------------| |High Capacity WD (T4/T5) |NIC/TOE,WD-UDP,UM(Agent,Client,WebGUI)| |---------------------------------------|--------------------------------------| |Hash Filter (T5/T6) |NIC,Filtering,UM(Agent,Client,WebGUI) | |---------------------------------------|--------------------------------------| |Memory Free^ (T5) |NIC/TOE,iWARP,UM(Agent,Client,WebGUI) | |------------------------------------------------------------------------------| ^ Beta Release. Should be used only with SO adapters. Enabling RDMA on ARM platforms: ------------------------------- RDMA is disabled by default in RHEL 7.X build of ARM architecture. To enable this feature, follow the steps mentioned below: i. Download the kernel source package and extract it. ii. Create a kernel configuration file. [root@host~]# make oldconfig iii. The above command will create a configuration file ".config" in the same location. Edit the file and enable the following parameters as follows: CONFIG_NET_VENDOR_CHELSIO=y CONFIG_INFINIBAND=y iv. Compile the kernel. v. During kernel compilation, please ensure that the following parameters are set as follows: CONFIG_CHELSIO_T1=m CONFIG_CHELSIO_T1_1G=y CONFIG_CHELSIO_T3=m CONFIG_CHELSIO_T4=m CONFIG_CHELSIO_T4VF=m CONFIG_INFINIBAND_USER_MAD=m CONFIG_INFINIBAND_USER_ACCESS=m CONFIG_INFINIBAND_USER_MEM=y CONFIG_INFINIBAND_CXGB3=m CONFIG_INFINIBAND_CXGB3_DEBUG=y CONFIG_INFINIBAND_CXGB4=m CONFIG_SCSI_CXGB3_ISCSI=m CONFIG_SCSI_CXGB4_ISCSI=m vi. Install the kernel. vii. Reboot into the newly installed kernel. Allowing unsupported modules on SLES ------------------------------------ On SLES11 SPx platforms, edit the "/etc/modprobe.d/unsupported-modules" file and change "allow_unsupported_modules" to 1. On SLES12 SPx platforms, edit the "/etc/modprobe.d/10-unsupported-modules.conf" file and change "allow_unsupported_modules" to 1. Installation ------------ Follow the steps mentioned below for installation using CLI. For GUI or Menu based installation, refer the User's Guide. 1.1. From source ---------------- a) Download Chelsio Unified Wire driver package. b) Untar the tarball [root@host~]# tar zxvfm .tar.gz c) Change your current working directory to Chelsio Unified Wire package directory. Build the source: [root@host~]# make d) Install the drivers, tools and libraries: [root@host~]# make install e) The default configuration tuning option is Unified Wire. The configuration tuning can be selected using the following commands: [root@host~]# make CONF= [root@host~]# make CONF= install NOTE: To view the different configuration tuning options, view help by typing [root@host~]# make help f) Reboot your machine for changes to take effect. IMPORTANT:Steps (d) and (e) mentioned above will NOT install DCB driver and benchmark tools. They will have to be installed manually. Please refer to section "Installing individual drivers" for instructions on installing them. Installation on updated kernels ------------------------------- If the kernel version on your Linux distribution is updated, please execute the following command to install the Unified Wire package: [root@host~]# make UNAME_R= Where kernel_version is the nearest supported kernel version. For example, if you want to install the package on a RHEL 6 distribution updated to 2.6.32-431.20.3.el6 kernel, run the following commands: [root@host~]# make UNAME_R=2.6.32-431.el6 [root@host~]# make UNAME_R=2.6.32-431.el6 install To view the list of the supported kernel versions, run the following command: [root@host~]# make list_kernels Reboot your machine for changes to take effect. iWARP driver installation on Cluster nodes ------------------------------------------ IMPORTANT: Please make sure that you have enabled password less authentication with ssh on the peer nodes for this feature to work. Chelsio's Unified Wire package allows installing iWARP drivers on multiple Cluster nodes with a single command. Follow the procedure mentioned below: a) Create a file (machinefilename) containing the IP addresses or hostnames of the nodes in the cluster. You can view the sample file, sample_machinefile, provided in the package to view the format in which the nodes have to be listed. b) Now, execute the following command: [root@host~]# ./install.py -C -m c) Select the required configuration tuning option. The tuning options may vary depending on the Linux distribution. d) Select the required Cluster Configuration. e) If you already have the required version of OFED software installed, you can skip this step. To install OFED-3.18-2 choose the "Install-OFED option". To skip this step, "select Skip-OFED". f) The selected components will now be installed. The above command will install iWARP (iw_cxgb4) and TOE (t4_tom) drivers on all the nodes listed in the file 1.2. From RPM (tarball) ----------------------- NOTE: - IPv6 should be enabled in the machine to use the RPM Packages. - Drivers installed from RPM Packages do not have DCB support. a) Download the tarball specific to your operating system and architecture. b) Untar the tarball E.g. For RHEL 6.6, untar using the following command: [root@host~]# tar zxvfm -RHEL6.6_x86_64.tar.gz c) Change your current working directory to Chelsio Unified Wire package directory. Run the following command: [root@host~]# ./install.py -i nic_toe :NIC and TOE drivers only all :all Chelsio drivers built against inbox OFED udpso :UDP segmentation offload capable NIC and TOE drivers only wd :Wire Direct drivers and libraries only NOTE: The Installation options may vary depending on the Linux distribution. d) The default configuration tuning option is Unified Wire. The configuration tuning can be selected using the following command: [root@host~]# ./install.py -i -c NOTE: To view the different configuration tuning options, view the help by typing [root@host~]# ./install.py -h e) To install OFED and Chelsio Drivers built against OFED, run the above command with -o option. [root@host~]# ./install.py -i -c -o f) Reboot your machine for changes to take effect. NOTE:If the installation aborts with the message "Resolve the errors/dependencies manually and restart the installation", please go through the install.log to resolve errors/dependencies and then start the installation again. iWARP driver installation on cluster nodes ------------------------------------------- IMPORTANT:Please make sure that you have enabled password less authentication with ssh on the peer nodes for this feature to work. a) Create a file (machinefilename) containing the IP addresses or hostnames of the nodes in the cluster. You can view the sample file, sample_machinefile, provided in the package to view the format in which the nodes have to be listed. b) Navigate to driver package directory and execute the following command: [root@host~]# ./install.py -C -m -i -c -o Here, -o parameter will install OFED and Chelsio drivers built against OFED The above command will install iWARP (iw_cxgb4) and TOE (t4_tom) drivers on all the nodes listed in the file c) Reboot your machine for changes to take effect. 2. Installing individual drivers ================================ You can also choose to install drivers individually. Provided here are steps to build and install NIC,TOE,iWARP,Bonding,UDP Segmentation Offload,Crypto Offload, DCB drivers and benchmarking tools. To know about other drivers, view help by running "make help". - To build and install NIC driver without offload support: [root@host~]# make nic [root@host~]# make nic_install - To build and install NIC driver with offload support and Offload drivers: [root@host~]# make toe [root@host~]# make toe_install - To build and install Offload drivers without IPv6 support: [root@host~]# make toe_ipv4 [root@host~]# make toe_ipv4_install - To build and install iWARP driver against outbox OFED: [root@host~]# make iwarp [root@host~]# make iwarp_install - To build and install bonding driver and Offload drivers: [root@host~]# make bonding [root@host~]# make bonding_install - To build and install all drivers without IPv6 support: [root@host~]# make ipv6_disable=1 [root@host~]# make ipv6_disable=1 install - To build and install Crypto Offload driver: [root@host~]# make crypto [root@host~]# make crypto_install - To build and install all drivers with DCB support: [root@host~]# make dcbx=1 [root@host~]# make dcbx=1 install - The offload drivers support UDP Segmentation Offload with limited number of connections (1024 connections).To build and install UDP Offload drivers which support large number of offload connections (approx 10K), [root@host~]# make udp_offload [root@host~]# make udp_offload_install - The default configuration tuning option is Unified Wire. The configuration tuning can be selected using the following commands: [root@host~]# make CONF= [root@host~]# make CONF= - To build and install drivers along with benchmarks: [root@host~]# make BENCHMARKS=1 [root@host~]# make BENCHMARKS=1 install - Unified Wire Manager will be installed by default. To skip the installation: [root@host~]# make INSTALL_UM=0 install - The drivers will be installed as RPMs or Debian packages (for ubuntu). To skip this and install drivers: [root@host~]# make SKIP_RPM=1 install NOTE:To view the different configuration tuning options, view the help by typing [root@host~]# make help NOTE:If IPv6 is disabled in the machine, the drivers will be built and installed without IPv6 Offload support by default. 3. Firmware Update ================== The firmware (v1.16.22.0) is installed on the system, typically in /lib/firmware/cxgb4, and the driver will auto-load the firmware if an update is required. The kernel must be configured to enable userspace firmware loading support: Device Drivers -> Generic Driver Options -> Userspace firmware loading support The firmware version can be verified using ethtool: [root@host~]# ethtool -i 4. Uninstalling Chelsio Unified Wire ==================================== There are two methods to uninstall the Chelsio Unified Wire package: from source and from RPM. If you decide to use source, you can uninstall the package using CLI or GUI mode. Follow the steps mentioned below for uninstallation using CLI. For GUI based uninstallation, refer the User's Guide. 4.1. From source ---------------- Navigate to the driver package directory. Uninstall the source using the following command: [root@host~]# make uninstall NOTE:Uninstalling Unified Wire package will not uninstall Unified Wire Manager. Refer the section, "Uninstalling individual drivers/software" to remove the software manually. iWARP driver uninstallation on Cluster nodes ---------------------------------------------- To uninstall iWARP drivers on multiple Cluster nodes with a single command, run the following command: [root@host~]# ./install.py -C -m -u all The above command will remove Chelsio iWARP (iw_cxgb4) and TOE (t4_tom) drivers from all the nodes listed in the machinefilename file. 4.2. From RPM (tar-ball) ------------------------ Go to the driver package directory. Run the following command: [root@host~]# ./uninstall.py Here, inbox : for removing all Chelsio drivers. ofed : for removing OFED and Chelsio drivers. NOTE:The uninstallation options may vary depending on Linux distribution. View help by running the following command for more information: [root@host~]# ./uninstall.py -h NOTE:Uninstalling Unified Wire package will not uninstall Unified Wire Manager. Refer the "Unified Wire Manager (UM)" section to remove the software manually. iWARP driver uninstallation on Cluster nodes ----------------------------------------------- To uninstall iWARP drivers on multiple Cluster nodes with a single command, run the following: [root@host~]# ./install.py -C -m -u The above command will remove Chelsio iWARP (iw_cxgb4) and TOE (t4_tom) drivers from all the nodes listed in the machinefilename file. 5. Uninstalling individual drivers/software =========================================== You can also choose to uninstall drivers/software individually. Provided here are steps to uninstall NIC, TOE,iWARP,UDP Segmentation Offload drivers and Unified Wire Manager(UM). To know about other drivers, view help by running "make help". - To uninstall NIC driver: [root@host~]# make nic_uninstall - To uninstall drivers with offload support: [root@host~]# make toe_uninstall - To uninstall iWARP driver: [root@host~]# make iwarp_uninstall - To uninstall UDP Segmentation Offload driver: [root@host~]# make udp_offload_uninstall - To uninstall Unified Wire Manager (UM) [root@host~]# make uninstall UM_UNINST=1 OR [root@host~]# make tools_uninstall UM_UNINST=1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Network (NIC/TOE) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. - To load the driver in NIC mode(without offload support) [root@host~]# modprobe cxgb4 - To load driver in TOE mode(with offload support) [root@host~]# modprobe t4_tom NOTE:Offload support needs to be enabled upon each reboot of the system. This can be done manually as shown above. In VMDirect Path environment, it is recommended to load the offload driver using the following command: [root@host~]# modprobe t4_tom vmdirectio=1 2. Instantiate Virtual Functions ================================ To instantiate the Virtual functions, load the cxgb4 driver with 'num_vf' parameter with a non-zero value. For example: [root@host~]# modprobe cxgb4 num_vf=1,0,0,0 Each number instantiates the specified number of Virtual Functions for the corresponding Physical Function. The Virtual Functions can be assigned to Virtual Machines(Guest OS). A maximum of 64 Virtual Functions can be instantiated with 16 Virtual Functions per Physical Function. Loading the cxgb4 driver with "num_vf" parameter loads the cxgb4vf driver by default. Hence unload the cxgb4vf driver (on the host) before assigning Virtual Functions to the Virtual Machines(Guest OS), using the following command: [root@host~]# rmmod cxgb4vf 3. Enabling Busy waiting ======================== Busy waiting/polling is a technique where a process repeatedly checks to see if an event has occurred, by spinning in a tight loop. By making use of similar technique, Linux kernel provides the ability for the socket layer code to poll directly on an Ethernet device's Rx queue. This eliminates the cost of interrupts and context switching, and with proper tuning allows to achieve latency performance similar to that of hardware. Chelsio's NIC and TOE drivers support this feature and can be enabled on Chelsio supported devices to attain improved latency. To make use of BUSY_POLL feature, follow the steps mentioned below: a) Enable BUSY_POLL support in kernel config file by setting "CONFIG_NET_RX_BUSY_POLL=y" b) Enable BUSY_POLL globally in the system by setting the values of following sysctl parameters depending on the number of connections: sysctl -w net.core.busy_read= sysctl -w net.core.busy_poll= Set the values of the above parameters to 50 for 100 or less connections; and 100 for more than 100 connections. NOTE: BUSY_POLL can also be enabled on a per-connection basis by making use of SO_BUSY_POLL socket option in the socket application code.Refer socket man-page for further details. 4. Performance Tuning ===================== To tune your system for better network performance, refer the "Performance Tuning" section of the Network (NIC/TOE) chapter in the User's Guide. NOTE: For more information on additional configuration options, please refer User's Guide. 5. Driver Unloading ==================== - To unload the driver in NIC mode(without offload support): [root@host~]# rmmod cxgb4 - A reboot is required to unload the driver in TOE(with Offload support). To avoid rebooting, follow the steps mentioned below: a) Load t4_tom driver with unsupported_allow_unload parameter. [root@host~]# modprobe t4_tom unsupported_allow_unload=1 b) Stop all the offloaded traffic, servers and connections. Check for the reference count. [root@host~]# cat /sys/module/t4_tom/refcnt If the reference count is 0, the driver can be directly unloaded. Skip to step (c). If the count is non-zero, load a COP policy which disables offload using the following procedure: i. Create a policy file which will disable offload [root@host~]# cat policy_file all => !offload ii. Compile and apply the output policy file [root@host~]# cop –o no-offload.cop policy_file [root@host~]# cxgbtool ethX policy no-offload.cop c) Unload the driver: [root@host~]# rmmod t4_tom [root@host~]# rmmod toecore [root@host~]# rmmod cxgb4 NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Virtual Function Network (vNIC) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Instantiate Virtual Functions ================================ To instantiate Chelsio Virtual Functions, please refer the "Network (NIC/TOE)" section 2. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The vNIC (cxgb4vf) driver must be loaded on the Guest OS by the root user. Any attempt to load the driver as a regular user will fail. To load the driver execute the following command: [root@host~]# modprobe cxgb4vf 3. Driver Unloading ======================= To unload the driver execute the following command: [root@host~]# rmmod cxgb4vf NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ iWARP (RDMA) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. To load the iWARP driver we need to load the NIC driver & core RDMA drivers first: [root@host~]# modprobe cxgb4 [root@host~]# modprobe iw_cxgb4 [root@host~]# modprobe rdma_ucm 2. Driver Unloading =================== To unload the iWARP driver, run the following command: [root@host~]# rmmod iw_cxgb4 IMPORTANT:openmpi-1.4.3 can cause IMB benchmark stalls due to a shared memory BTL issue. This issue is fixed in openmpi-1.4.5 and later releases. Hence, it is recommended that you download and install the latest stable release from Open MPI's official website, http://www.open-mpi.org NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ iSER ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= Follow the steps mentioned below on both target and initiator machines: a) Unload Chelsio iWARP driver if previously loaded: [root@host~]# rmmod iw_cxgb4 b) Load the following modules: [root@host~]# modprobe iw_cxgb4 mpa_rev=2 [root@host~]# modprobe rdma_ucm c) Start the iWARP Port Mapper Daemon: [root@host~]# iwpmd d) Bring up the Chelsio interface(s): [root@host~]# ifconfig ethX x.x.x.x up e) Run the following script for IRQ mapping: [root@host~]# t4_perftune.sh f) On target, run the following command: [root@host~]# modprobe ib_isert On initiator, run the following command: [root@host~]# modprobe ib_iser 2. Configuration =================== Configuring LIO Target ----------------------- The following commands will configure LIO target with iSER support, using ramdisk as LUN: [root@host~]# targetcli /backstores/ramdisk create name=ram0 size=1GB [root@host~]# targetcli /iscsi create wwn=iqn.2003-01.org.lun0.target [root@host~]# targetcli /iscsi/iqn.2003-01.org.lun0.target/tpg1/luns create /backstores/ramdisk/ram0 [root@host~]# targetcli /iscsi/iqn.2003-01.org.lun0.target/tpg1/portals/0.0.0.0:3260 enable_iser boolean=True [root@host~]# targetcli /iscsi/iqn.2003-01.org.lun0.target/tpg1 set attribute authentication=0 demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1 [root@host~]# targetcli saveconfig Configuring OpeniSCSI Initiator ------------------------------- The following commands will log-in to the LIO target using OpeniSCSI initiator, with iSER as transport mode: [root@host~]# iscsiadm -m discovery -t st -p 102.10.10.4 [root@host~]# iscsiadm -m node -p 102.10.10.4 -T iqn.2003-01.org.lun0.target --op update -n node.transport_name -v iser [root@host~]# iscsiadm -m node -p 102.10.10.4 -T iqn.2003-01.org.lun0.target --login ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WD-UDP ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. InfiniBand modules from the OFED package should be loaded before proceeding. Load the cxgb4, iw_cxgb4 and rdma_ucm drivers: [root@host~]# modprobe cxgb4 [root@host~]# modprobe iw_cxgb4 [root@host~]# modprobe rdma_ucm 2. Configuring WD-UDP ===================== Preload "libcxgb4_sock" using one of the methods mentioned below when starting your application: Preloading using wdload script ------------------------------ [root@host~]# PROT=UDP wdload /your_application The above command will generate an end point file, libcxgb4_sock.conf at /etc/. Parameters like interface name and port number can be changed in this file. NOTE: If you encounter error while using wdload on kernels built on RHEL 5.x distribution, then run the above command as: [root@host~]# NUMA=0 PROT=UDP wdload /your_application Preloading manually ------------------- Create a configuration file that defines which UDP endpoints should be accelerated, their vlan and priority if any, as well as which interface/port should be used. The file /etc/libcxgb4_sock.conf contains these endpoint entries. Create this file on all systems using libcxgb4_sock. Here is the syntax: Syntax: endpoint { attributes } ... where attributes include: interface = interface-name port = udp-port-number E.g: endpoint {interface=eth2 port=8888} endpoint {interface=eth3 port=9999} The above file defines 2 accelerated endpoints, port 8888 which will use eth2, and port 9999 which will use eth3. Now, preload libcxgb4_sock using the following command: [root@host~]# CXGB4_SOCK_CFG= LD_PRELOAD=libcxgb4_sock.so /your_application The following example shows how to run Netperf with WD-UDP: server: [root@host~]# PROT=UDP wdload netserver -p client: [root@host~]# PROT=UDP wdload netperf -H -p -t UDP_RR NOTE: i. In WD-UDP only one application can be run per Terminator device per UDP port number. For running 2 concurrent netperf UDP_RR tests, each must use a unique UDP port number or Terminator device. E.g.: endpoint {interface=eth2 port=8888} endpoint {interface=eth2 port=9000} The above file defines 2 accelerated endpoints, port 8888 and port 9000 both will be used by eth2 only. ii. In order to offload IPv6 UDP sockets, please select "low latency networking" as configuration tuning option during installation. iii. Jumbo frames of 9000B are supported only on kernel 2.6.32 and above. 3. Driver Unloading =================== To unload the iWARP driver, run the following command: [root@host~]# rmmod iw_cxgb4 NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ NVMe-oF ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ IMPORTANT: Ensure that the kernel is installed with NVMe-oF components (refer Requirements section) before proceeding with Unified Wire installation. 1. Driver Loading ================= Follow the steps mentioned below on both target and initiator machines: a) Load the following modules: [root@host~]# modprobe iw_cxgb4 [root@host~]# modprobe rdma_ucm b) Bring up the Chelsio interface(s): [root@host~]# ifconfig ethX x.x.x.x up c) Mount configfs by running the below command: [root@host~]# mount -t configfs none /sys/kernel/config d) On target, run the following commands: [root@host~]# modprobe null_blk [root@host~]# modprobe nvmet [root@host~]# modprobe nvmet-rdma On initiator, run the following commands: [root@host~]# modprobe nvme [root@host~]# modprobe nvme-rdma 2. Configuration ================ Target ------ a) The following commands will configure target using nvmetcli with a LUN: [root@host~]# nvmetcli /> cd subsystems /subsystems> create nvme-ram0 /subsystems> cd nvme-ram0/namespaces /subsystems/n...m0/namespaces> create nsid=1 /subsystems/n...m0/namespaces> cd 1 /subsystems/n.../namespaces/1> set device path=/dev/ram1 /subsystems/n.../namespaces/1> cd ../.. /subsystems/nvme-ram0> set attr allow_any_host=1 /subsystems/nvme-ram0> cd namespaces/1 /subsystems/n.../namespaces/1> enable /subsystems/n.../namespaces/1> cd ../../../.. /> cd ports /ports> create 1 /ports> cd 1/ /ports/1> set addr adrfam=ipv4. /ports/1> set addr trtype=rdma /ports/1> set addr trsvcid=4420 /ports/1> set addr traddr=102.1.1.102 /ports/1> cd subsystems /ports/1/subsystems> create nvme-ram0 b) Save the target configuration to a file: /ports/1/subsystems> saveconfig /root/nvme-target_setup /ports/1/subsystems> exit c) Clear the targets: [root@host~]# nvmetcli clear Initiator --------- a) Discover the target [root@host~]# nvme discover -t rdma -a -s 4420 b) Connect to target Connecting to a specific target: [root@host~]# nvme connect -t rdma -a -s 4420 -n Connecting to all targets configured on a portal [root@host~]# nvme connect-all -t rdma -a -s 4420 c) List the connected targets [root@host~]# nvme list d) Format and mount the NVMe disks shown with the above command. e) Disconnect from the target and unmount the disk: [root@host~]# nvme disconnect -d NOTE: nvme_disk_name is the name of the device (Ex:nvme0n1) and not the device path. 3. Driver Unloading =================== Follow the steps mentioned below to unload the drivers: On target, run the following commands: [root@host~]# rmmod nvmet-rdma [root@host~]# rmmod nvmet [root@host~]# rmmod iw_cxgb4 On initiator, run the following commands: [root@host~]# rmmod nvme-rdma [root@host~]# rmmod nvme [root@host~]# rmmod iw_cxgb4 NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ LIO iSCSI Target Offload ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Installation =============== a) Download the stable version of 4.8.X from kernel.org. b) Untar the tar-ball. c) Change your working directory to kernel package directory and run the following command to invoke the installation menu. [root@host~]# make menuconfig d) Select "Device Drivers" > "Generic Target Core Mod (TCM) and ConfigFS Infrastructure". e) Enable "Linux-iSCSI.org iSCSI Target Mode Stack" and "Chelsio iSCSI target offload driver."" f) Select Save. g) Exit from the installation menu. h) Apply the patch provided in the Unified Wire package [root@host~]# patch -p1 < /root//src/cxgbit/patch/iscsi_target.patch i) Continue with installation as usual. j) Reboot to the newly installed 4.8 kernel. Verify by running "uname -a" command. k) Install the Unified Wire package as mentioned in the "Chelsio Unified Wire" section. 2. Driver Loading ================= IMPORTANT: Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. Loading Network Driver ---------------------- The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. To load the driver in NIC mode (without offload support) [root@host~]# modprobe cxgb4 Bring up the interface. [root@host~]# ifconfig ethX up Loading LIO iSCSI Target Offload driver --------------------------------------- Load the LIO iSCSI Target Offload driver (cxgbit) using: [root@host~]# modprobe cxgbit 3. Driver Configuration ======================= Configuring LIO iSCSI Target ----------------------------- The LIO iSCSI Target needs to be configured before it can become useful. Please refer the user manual at http://www.linux-iscsi.org/Doc/LIO Admin Manual.pdf to do so. Offloading LIO iSCSI Connection -------------------------------- To offload the LIO iSCSI Target, use the following command: [root@host~]# echo 1 > /sys/kernel/config/target/iscsi//tpgt_1/np/\:3260/cxgbit Execute the above command for every portal address listening on Chelsio interface. Performance Tuning ------------------ The driver package provides tools to auto tune the system for best performance. Please refer the User's Guide for instructions. 4. Driver Unloading =================== Unloading LIO iSCSI Target Offload driver ----------------------------------------- To unload the LIO iSCSI Target Offload driver, follow the steps mentioned below: a) Log out from the initiator b) Run the following command: [root@host~]# echo 0 > /sys/kernel/config/target/iscsi//tpgt_1/np/\:3260/cxgbit Execute the above command for every portal address listening on Chelsio interface. c) Unload the driver: [root@host~]# rmmod cxgbit Unloading Network driver ------------------------ - To unload the driver in NIC mode (without offload support): [root@host~]# rmmod cxgb4 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ iSCSI PDU Offload Target ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================== IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. To load the module, run modprobe as follows: [root@host~]# modprobe chiscsi_t4 2. Driver Unloading ==================== Use the following command to unload the module: [root@host~]# rmmod chiscsi_t4 NOTE:i. While using rpm-tar-ball for installation a. Uninstallation will result into chiscsi.conf file renamed into chiscsi.conf.rpmsave. b. It is advised to take a backup of chiscsi.conf file before you do an uninstallation and installation of new/same unified wire package. As re-installing/upgrading unified-wire package may lead to loss of chiscsi.conf file. ii. Installation/uninstallation using source-tar-ball will neither remove the conf file nor rename it. It will always be intact. However it is recommended to always take a backup of your configuration file for both methods of installation. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ iSCSI PDU Offload Initiator ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to loading the driver as a regular user will fail. Load cxgb4i driver using the following command: [root@host~]# modprobe cxgb4i The cxgb4i module registers a new transport class "cxgb4i". If loading of cxgb4i displays "unkown symbols found" error in dmesg, follow the steps mentioned below: a) Kill iSCSI daemon "iscsid" b) View all the loaded iSCSI modules [root@host~]# lsmod | grep iscsi c) Now, unload them using the following command: [root@host~]# rmmod d) Finally reload the cxgb4i driver 2. Driver Unloading =================== [root@host~]# rmmod cxgb4i [root@host~]# rmmod libcxgbi NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Crypto Offload ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ IMPORTANT: Ensure that the kernel is installed with Crypto components (refer Requirements section) before proceeding with Unified Wire installation. 1. Driver Loading ================= To load Crypto Offload driver in Co-processor mode(chcr), run the following command: [root@host~]# modprobe chcr To load Crypto Offload driver in Inline mode, load the network driver in TOE mode: [root@host~]# modprobe t4_tom 2. Configuration ================ Supported Algorithms (Co-processor) ----------------------------------- To view the complete list of supported cryptographic algorithms use the following command: [root@host~]# cat /proc/crypto|grep -i chcr TLS Port Configuration (Inline) ------------------------------- In order to use Chelsio crypto offload in Inline mode, use the appropriate "openssl.cnf" file: [root@host~]# cd /usr/chssl/openssl/ [root@host~]# cp openssl-tls.cnf openssl.cnf A total of up to 12 TCP ports can be configured for TLS offload, each port id corresponding to a specific security protocol. To set security protocol(s), follow the steps mentioned below: a) Configure MSS to 16k [root@host~]# echo 16384 > /proc/sys/toe/toeX_tom/mss b) Define the respective TCP port(s) using the "tls_ports" configuration interface. [root@host~]# echo " ..." > /proc/sys/toe/toeX_tom/tls_ports E.g.: [root@host~]# echo 16384 > /proc/sys/toe/toe1_tom/mss [root@host~]# echo "443 989 990 992 993 994 995" > /proc/sys/toe/toe1_tom/tls_ports NOTE: For more information regarding port ids and corresponding security protocols, refer User's Guide. Chelsio OpenSSL (Co-processor, Inline) -------------------------------------- OpenSSL which supports Chelsio crypto offload is installed as part of Unified Wire package. It is installed in /usr/chssl/bin - To determine the hash value of a file: [root@host~]# cd /usr/chssl/bin [root@host~]# ./openssl dgst -engine af_alg -sha1 - To start TLS offload Server: [root@host~]# cd /usr/chssl/bin [root@host~]# ./openssl s_server -key -cert -accept 443 -cipher AES128-GCM-SHA256 -WWW - To start TLS offload Client: [root@host~]# cd /usr/chssl/bin [root@host~]# ./openssl s_time -connect : -www / 3. Driver Unloading =================== To unload Crypto Offload driver in Co-processor mode, run the following command: [root@host~]# rmmod chcr To unload Crypto Offload driver in Inline mode, unload the network driver in TOE mode, as mentioned under "Driver Unloading" in "Network (NIC/TOE)" section. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ DCB ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ NOTE: In this release, ETS bandwidth management will not work when Unified Wire traffic is run with IEEE DCBx enabled. Before proceeding, please ensure that Unified Wire Installer is installed with DCB support as mentioned in "Installing individual drivers" section. 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. Network (cxgb4;t4_tom for full offload support) and FCoE Initiator (csiostor) drivers must be loaded in order to enable DCB feature. Also, the drivers must be loaded by the root user. Any attempt to load the drivers as a regular user will fail. Run the following commands: [root@host~]# modprobe cxgb4 [root@host~]# modprobe t4_tom [root@host~]# modprobe csiostor Once the storage and networking traffic are started simultaneously, they will honor DCB settings defined on the switch. 2. Running NIC & iSCSI Traffic together with DCBx ================================================= NOTE: Please refer to "iSCSI PDU Offload Initiator" section to configure iSCSI Initiator. Use the following procedure to run NIC and iSCSI traffic together with DCBx enabled. a) Identify the VLAN priority configured for NIC and iSCSI class of traffic on the switch. b) Create VLAN interfaces for running NIC and iSCSI traffic, and configure corresponding VLAN priority. Example: Switch is configured with a VLAN priority of 2 and 5 for NIC and iSCSI class of traffic respectively. NIC traffic is run on VLAN10 and iSCSI traffic is run on VLAN20. Assign proper VLAN priorities on the interface (here eth5), using the following commands on the host machine: [root@host~]# vconfig set_egress_map eth5.10 0 2 [root@host~]# vconfig set_egress_map eth5.20 5 5 3. Driver Unloading =================== To disable DCB feature, unload FCoE Initiator and Network drivers: [root@host~]# rmmod csiostor [root@host~]# rmmod cxgb4 NOTE: - If "t4_tom" is loaded, please reboot the system to unload the drivers. - For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FCoE Full Offload Initiator ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. To load the driver, execute the following command: [root@host~]# modprobe csiostor 2. Configuring the switch and Troubleshooting ============================================= Please refer "Software Configuration and Fine-tuning" section in User's Guide 3. Driver Unloading =================== To unload the driver, execute the following command: [root@host~]# modprobe -r csiostor NOTE:If multipath services are running, unload of FCoE driver is not possible. Stop the multipath service and then unload the driver. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Offload Bonding driver ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to loading the driver as a regular user will fail. To load the Bonding driver (with offload support), run the following command: [root@host~]# modprobe bonding 2. Offloading TCP traffic over a bonded interface ================================================= The Chelsio Offload Bonding driver supports all the bonding modes in NIC Mode. In offload mode (t4_tom loaded) however, only the balance-rr (mode=0), active-backup (mode=1),balance-xor (mode=2) and 802.3ad (mode=4) modes are supported. To offload TCP traffic over a bonded interface, use the following method: a) Load the network driver with TOE support. [root@host~]# modprobe t4_tom b) Create a bonded interface [root@host~]# modprobe bonding mode=1 miimon=100 c) Bring up the bonded interface and enslave the interfaces to the bond [root@host~]# ifconfig bond0 up [root@host~]# ifenslave bond0 ethX ethY NOTE: "ethX" and "ethY" are interfaces of the same adapter. d) Assign IPv4/IPv6 address to the bonded interface [root@host~]# ifconfig bond0 X.X.X.X/Y [root@host~]# ifconfig bond0 inet6 add <128-bit IPv6 Address> up e) Disable FRTO on the PEER: [root@host~]# sysctl -w net.ipv4.tcp_frto=0 All TCP traffic will be offloaded over the bonded interface now. 3. Driver Unloading =================== To unload the bonding driver. [root@host~]# rmmod bonding NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Offload Multi-Adapter Failover (MAFO) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Multi-Adapter fail-over feature will work for link down events caused by: - Cable unplug on bonded interface - Bringing corresponding switch port down NOTE: The feature will not work if the bonded interfaces are administratively taken down. IMPORTANT: - Portions of this software are covered under US Patent "Failover and migration for full-offload network interface devices : US 8346919 B1" - Use of the covered technology is strictly limited to Chelsio ASIC-based solutions. 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. To load the driver (with offload support), run the following command: [root@host~]# modprobe bonding 2. Offloading TCP traffic over a bonded interface ================================================= The Chelsio MAFO driver supports only the active-backup (mode=1) mode. To offload TCP traffic over a bonded interface, use the following method: a) Load the network driver with TOE support. [root@host~]# modprobe t4_tom b) Create a bonded interface [root@host~]# modprobe bonding mode=1 miimon=100 c) Bring up the bonded interface and enslave the interfaces to the bond [root@host~]# ifconfig bond0 up [root@host~]# ifenslave bond0 ethX ethY NOTE: "ethX" and "ethY" are interfaces of different adapters. d) Assign IPv4/IPv6 address to the bonded interface [root@host~]# ifconfig bond0 X.X.X.X/Y [root@host~]# ifconfig bond0 inet6 add <128-bit IPv6 Address> up e) Disable FRTO on the PEER: [root@host~]# sysctl -w net.ipv4.tcp_frto=0 All TCP traffic will be offloaded over the bonded interface now and fail-over will happen in case of link-down event. 3. Driver Unloading =================== To unload the driver, run the following command: [root@host~]# rmmod bonding NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UDP Segmentation Offload and Pacing ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. The driver must be loaded by the root user. Any attempt to load the driver as a regular user will fail. Run the following commands to load the driver: [root@host~]# modprobe cxgb4 [root@host~]# modprobe t4_tom Though normally associated with the Chelsio TCP Offload engine, the t4_tom module is required in order to allow for the proper redirection of UDP socket calls. 2. Driver Unloading =================== Reboot the system to unload the driver. To unload without rebooting, refer "Unloading the driver" in Network (NIC/TOE) section. NOTE: For more information on additional configuration options, please refer User's Guide. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Offload IPv6 driver ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ IPv6 must be enabled in your system (enabled by default) to use the Offload IPv6 feature.Also, Unified Wire package must be installed with IPv6 support (see section 4.1 for more information). 1. NIC & TOE Driver Loading =========================== IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. After installing Unified Wire package and rebooting the host, load the NIC (cxgb4) and TOE (t4_tom) drivers. The drivers must be loaded by root user. Any attempt to load the drivers as a regular user will fail. [root@host~]# modprobe cxgb4 [root@host~]# modprobe t4_tom All the IPv6 traffic will be offloaded now. 2. NIC & TOE Driver Unloading ============================== - To unload the NIC driver: [root@host~]# rmmod cxgb4 - To unload the TOE driver: Please reboot the system to unload the TOE driver. To unload without rebooting, refer "Unloading the driver" in Network (NIC/TOE) section. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WD Sniffing and Tracing ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The objective of these utilities (wd_sniffer and wd_tcpdump_trace) is to provide sniffing and tracing capabilities by making use of Terminator's hardware features. Sniffer- Involves targeting specific multicast traffic and sending it directly to user space. Tracer - All tapped traffic is forwarded to user space and also pushed back on the wire via the internal loop back mechanism In either mode the targeted traffic bypasses the kernel TCP/IP stack and is delivered directly to user space by means of a RX queue which is defined by the register MPS_TRC_RSS_CONTROL. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Classification and Filtering ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Usage ======== Creating Filter Rules --------------------- Network driver (cxgb4) must be installed before setting the filter rule. a) If you haven't done already, run the Unified Wire Installer with the appropriate configuration tuning option to install the Network Driver. b) Next, run the following command to load the network driver: [root@host~]# modprobe cxgb4 c) Now, create filter rules using cxgbtool: [root@host~]# cxgbtool ethx filter action [pass/drop/switch] Where, ethX : Chelsio interface index : positive integer set as filter id action : Ingress packet disposition pass : Ingress packets will be passed through set ingress queues switch : Ingress packets will be routed to an output port with optional header rewrite. drop : Ingress packets will be dropped. NOTE: In case of multiple filter rules, the rule with the lowest filter index takes higher priority. Listing Filter Rules -------------------- To list previously set filters, run the following command: [root@host~]# cxgbtool ethX filter show Removing Filter Rules --------------------- To remove a filter, run the following command with the corresponding filter rule index [root@host~]# cxgbtool ethX filter index NOTE:For more information on additional parameters, refer to cxgbtool manual by running the "man cxgbtool" command. 2. Hash/DDR Filters =================== The default (Unified Wire) configuration tuning option allows you to create LE-TCAM filters, which has a limit of 496 filter rules. If you wish to create more, select "T5/T6 Hash Filter" configuration tuning option during installation which allows you to create HASH/DDR filters with a capacity of ~0.5 million filter rules. NOTE: Creating Hash/DDR Filters is currently supported only on T5/T6 adapters. Creating Filter Rules --------------------- Network driver (cxgb4) must be installed and loaded before setting the filter rule. a) If you haven’t done already, run the Unified Wire Installer with the "T5/T6 Hash Filter" configuration tuning option to install the Network Driver. b) Load the network driver with DDR filters support : [root@host~]# modprobe cxgb4 use_ddr_filters=1 c) Now, create filter rules using cxgbtool: [root@host~]# cxgbtool ethX filter action [pass/drop/switch] fip lip fport lport hitcnts 1 cap maskless Where, ethX : Chelsio interface. index : Filter index. The user must provide a positive integer, which will be replaced by an automatically computed index, based on the hash (4-tuple). The index will be displayed after the filter rule is created successfully. action : Ingress packet disposition. pass : Ingress packets will be passed through set ingress queues. switch : Ingress packets will be routed to an output port with. optional header rewrite. drop : Ingress packets will be dropped. source IP/port : Source IP/port of incoming packet. destination IP/port: Destination IP/port of incoming packet. NOTE: "source IP","destination IP","source port" and "destination port" are mandatory parameters since Hash filters don't support masks and hence, 4-tuple must be supplied always for Hash filter. "cap maskless" parameter should be appended in order to create Hash/DDR filter rules. Otherwise the above command will create LE-TCAM filter rules. d) Hash filters will match TCP traffic by default. In order to match other protocol traffic, add "proto" parameter while creating the filter. For example, to match UDP packets: [root@host~]# cxgbtool ethX filter action [pass/drop/switch] fip lip fport lport proto 17 hitcnts 1 cap maskless Listing Filter Rules -------------------- - To list the Hash/DDR filters set, run the following command: [root@host~]# cat /sys/kernel/debug/cxgb4//hash_filters - To list both LE-TCAM and Hash/DDR filters set, run the following command: [root@host~]# cxgbtool ethX filter show Removing Filter Rules ---------------------- To remove a filter, run the following command with cap maskless parameter and corresponding filter rule index: [root@host~]# cxgbtool ethX filter index cap maskless NOTE: Filter rule index can be determined by referring the "hash_filters" file located in /sys/kernel/debug/cxgb4// NOTE: For more information on additional parameters, refer cxgbtool manual by running the man cxgbtool command. Hit Counters ------------ For LE-TCAM filters, hit counters will work simply by adding hitcnts 1 parameter to the filter rule. However, for Hash/DDR filters, you will have to make use of tracing feature and RSS queues. Here’s a step-by-step guide to enable hit counters for Hash/DDR filter rules: a) Enable tracing on adapter. [root@host~]# cxgbtool ethX reg 0x09800=0x13 b) Setup a trace filter [root@host~]# echo tx1 snaplen=40 > /sys/kernel/debug/cxgb4//trace0 NOTE: Use "snaplen=60" in case of IPv6. c) Configure the RSS Queue to receive traced packets. Determine the "RspQ ID" of the queue by looking at "Trace" QType in /sys/kernel/debug/cxgb4//sge_qinfo file [root@host~]# cxgbtool ethX reg 0x0a00c= The above step will trace all the packets transmitting from port1(tx1) to trace filter 0. Multi-tracing --------------- To enable hit counters for multiple Chelsio ports in Tx/Rx direction enable Multi-tracing. Using this we can configure 4 different RSS Queues separately corresponding to 4 trace-filters. a) Enable Tracing as well as MultiRSSFilter [root@host~]# cxgbtool ethX reg 0x09800=0x33 b) Setup a trace filter [root@host~]# echo tx0 snaplen=40 > /sys/kernel/debug/cxgb4//trace0 c) Configure the RSS Queue corresponding to trace0 filter configured above. Determine the "RspQ ID" of the queues by looking at "Trace" QType in /sys/kernel/debug/cxgb4//sge_qinfo file. [root@host~]# cxgbtool ethX reg 0x09808= d) Similarly for other direction and for multiple ports run the follow commands: [root@host~]# echo rx0 snaplen=40 > /sys/kernel/debug/cxgb4//trace1 [root@host~]# echo tx1 snaplen=40 > /sys/kernel/debug/cxgb4//trace2 [root@host~]# echo rx1 snaplen=40 > /sys/kernel/debug/cxgb4//trace3 [root@host~]# cxgbtool ethX reg 0x09ff4= [root@host~]# cxgbtool ethX reg 0x09ffc= [root@host~]# cxgbtool ethX reg 0x0a004= NOTE: Use "snaplen=60" in case of IPv6. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Traffic Management ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Driver Loading ================= IMPORTANT:Please ensure that all inbox drivers are unloaded before proceeding with unified wire drivers. Traffic Management can be performed on non-offloaded connections as well as on offloaded connections. The drivers must be loaded by the root user. Any attempt to load the drivers as a regular user will fail.Run the following commands to load the TOE driver: [root@host~]# modprobe cxgb4 [root@host~]# modprobe t4_tom 2. Driver Unloading =================== Reboot the system to unload the driver. To unload without rebooting, refer "Unloading the driver" in Network (NIC/TOE) section. 3. Usage ======== Traffic Management of Non-Offloaded Connections ----------------------------------------------- The following example demonstrates the method to rate limit all TCP connections on class 0 to a rate of 300 Mbps for Non-offload connections: a) Load the network driver and bring up the interface [root@host~]# modprobe cxgb4 [root@host~]# ifconfig eth0 up b) Bind connections with destination IP address 192.168.5.3 to NIC TX queue 3 [root@host~]# tc qdisc add dev eth0 root handle 1: multiq [root@host~]# tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst 192.168.5.3 action skbedit queue_mapping 3 c) Bind the NIC TX queue to class 0 [root@host~]# cxgbtool eth0 sched-queue 3 0 d) Set the appropriate rule for class 0 [root@host~]# cxgbtool eth0 sched-class params type packet level cl-rl mode class rate-unit bits rate-mode absolute channel 0 class 0 max-rate 300000 pkt-size 1460 Traffic Management of Offloaded Connections ------------------------------------------- The following example demonstrates the method to rate limit all TCP connections on class 0 to a rate of 300 Mbps for offloaded connections: a) Load the TOE driver and bring up the interface: [root@host~]# modprobe t4_tom [root@host~]# ifconfig eth0 up b) Create a new policy file (say new_policy_file) and add the following line to associate connections with the given scheduling class: src host 102.1.1.1 => offload class 0 NOTE: If no specified rule matches a connection, a default setting will be used which disables offload for that connection. That is, there will always be a final implicit rule following all the rules in the input rule set of: all => !offload c) Compile the policy file using COP [root@host~]# cop -d -o d) Apply the COP policy: [root@host~]# cxgbtool eth0 policy e) Set the appropriate rule for class 0 [root@host~]# cxgbtool ethX sched-class params type packet level cl-rl mode class rate-unit bits rate-mode absolute channel 0 class 0 max-rate 300000 pkt-size 1460 Traffic Management of Offloaded Connections with Modified Application --------------------------------------------------------------------- The following example demonstrates the method to rate limit all TCP connections on class 0 to a rate of 300 Mbps for for offloaded connections with modified application. a) Load the TOE driver and bring up the interface [root@host~]# modprobe t4_tom [root@host~]# ifconfig eth0 up b) Modify the application as mentioned in the Configuring Traffic Management section in the User's Guide. c) Set the appropriate rule for class 0 [root@host~]# cxgbtool ethX sched-class params type packet level cl-rl mode class rate-unit bits rate-mode absolute channel 0 class 0 max-rate 300000 pkt-size 1460 NOTE:For more information on additional parameters, refer cop manual by running the "man cxgbtool" command. NOTE: For more information on additional configuration options, please refer User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Unified Wire Manager ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Installation =============== Chelsio Unified Wire has been designed to install Unified Wire Manager (UM) by default. All the three UM components, i.e. Management Agent, Client and Station, will be installed on selecting any of the Terminator 4/Terminator 5 configuration tuning options during installation. Hence, no separate installation is required. 2. Management Station Configuration =================================== Running Management Station on RHEL 6.x -------------------------------------- a) Start/Restart Apache httpd daemon: [root@host~]# service httpd start/restart b) Start/Restart the Management Station: [root@host~]# /etc/init.d/chelsio-mgmtstd start/restart Running Management Station on SLES11SP3 --------------------------------------- a) On SLES11SP3, Management Station needs to be configured before running. Hence, execute the following commands and provide valid inputs. [root@host~]# cd /etc/apache2 [root@host~]# openssl genrsa -des3 -out server.key 1024 [root@host~]# openssl req -new -key server.key -out server.csr [root@host~]# cp server.key server.key.org [root@host~]# openssl rsa -in server.key.org -out server.key [root@host~]# openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt [root@host~]# cp server.crt ./ssl.crt [root@host~]# cp server.key ./ssl.key b) Start/Restart Apache services [root@host~]# rcapache2 start/restart c) Start/Restart the Management Station: [root@host~]# /etc/init.d/chelsio-mgmtstd start/restart 3. Un-Installation =================== Use the following query command to determine the name of the agent/client RPM [root@host~]# rpm -qa | grep uwire Now,Uninstall the RPM using the following syntax: [root@host~]# rpm -e 4. Verifying Agent/Client status ================================ a) Use following command to check whether Agent is running. [root@host~]# /etc/init.d/Chelsio-uwire_mgmtd status b) Use the following query command to determine if Management Client is installed: [root@host~]# chelsio_uwcli -V The above query should confirm that Management Client is installed by displaying a similar result: Unified Manager client CLI version : 2.x.yy 5. Agent/Station Start/Stop/restart =================================== - Use following command to start, stop or restart Agent: [root@host~]# /etc/init.d/Chelsio-uwire_mgmtd - Use following command to start, stop or restart Management station: [root@host~]# /etc/init.d/chelsio-mgmtstd 6. Client Usage =============== Use the following commands to view Management client Help file. [root@host~]# chelsio_uwcli /? NOTE: For a detailed explanation on usage and configuration of various UM components, please refer the User's Guide. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Unified Boot Software ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ NOTE: FCoE Boot not supported in the current release. 1. Flashing firmware & option ROM ================================= Depending on the boot mode selected, Chelsio Unified Boot provides two methods to flash firmware and option ROM onto Chelsio adapters: Flash utility "cfut4" for Legacy mode and "HII" for uEFI mode. Both methods also provide the functionality to update/erase Boot configuration, Hardware configuration and Phy Firmware files. Preparing USB flash drive ------------------------- This document assumes that you are using an USB flash drive as a storage media for the necessary files. Follow the steps below to prepare the drive: a) Create a DOS bootable USB flash drive. b) Create a directory "CHELSIO" on USB flash drive. c) If you haven't done already, download Chelsio Unified Wire driver package from Chelsio Download Center, service.chelsio.com d) Untar the downloaded package and change your working directory to "OptionROM" directory. [root@host~]# tar zxvfm .tar.gz [root@host~]# cd /Uboot/OptionROM e) Copy all the files and place them in the CHELSIO directory created on the USB flash drive. f) Plug-in the USB flash drive in the system on which the Chelsio CNA is installed. g) Reboot the system and enter the system BIOS setup. h) Make the USB flash drive as the primary boot device. i) Save the changes and exit. Legacy ------ a) Configure the system having Chelsio CNA to boot in Legacy mode. b) Once the system boots from the USB flash drive, change your working directory to CHELSIO directory: C:\>cd CHELSIO c) Run the following command to list all Chelsio CNAs present in the system. The list displays a unique index for each CNA found. C:\CHELSIO>cfut4 -l d) Delete any previous version of Option ROM flashed onto the CNA: C:\CHELSIO>cfut4 -d -xb Here, idx is the CNA index found in step (c) e) Delete any previous firmware using the following command: C:\CHELSIO>cfut4 -d -xh -xf f) Delete any previous Option ROM settings: C:\CHELSIO>cfut4 -d -xc g) Run the following command to flash the appropriate firmware. C:\CHELSIO>cfut4 -d -uf .bin h) Flash the Option ROM onto the Chelsio CNA using the following command: C:\CHELSIO>cfut4 -d -ub cubt4.bin Here, "cubt4.bin" is the unified option ROM image file present in the CHELSIO directory. i) Flash the default boot configuration file. C:\CHELSIO>cfut4 -d -uc bootcfg j) Reboot the system for changes to take effect. uEFI ----- To configure Chelsio CNA using HII in uEFI mode, please refer User's Guide. 2. Driver Update Disk (DUD) ============================ The following section describes the procedure to create Driver Update Disks for RHEL and SLES distributions, for Chelsio adapters. In case of T4 adapters, you can skip this step and use inbox drivers to install the operating system. Creating Driver Disk for RedHat Enterprise Linux ------------------------------------------------ a) If you haven't done already, download Chelsio Unified Wire driver package from Chelsio Download Center, service.chelsio.com b) Untar the package. [root@host~]# tar zxvfm .tar.gz c) Change your working directory to "LinuxDUD" directory. [root@host~]# cd /Uboot/LinuxDUD d) Insert a blank, formatted USB flash drive. e) Depending on the distribution to be installed, copy the corresponding image file to the USB drive.For example, execute the following command for RHEL 6.6 [root@host~]# cp Chelsio-DriverUpdateDisk-RHEL6.6-x86_64-x.xx.x.x.img NOTE: For RHEL 7.X, use Chelsio-DriverUpdateDisk-RHEL7.X-x86_64-x.xx.x.x.iso Creating Driver Disk for Suse Enterprise Linux ---------------------------------------------- a) If you haven't done already, download Chelsio Unified Wire driver package from Chelsio Download Center, service.chelsio.com b) Untar the package [root@host~]# tar zxvfm .tar.gz c) Insert a blank USB drive. d) Format the USB drive [root@host~]# mkfs.vfat /dev/sda1 e) Depending on the distribution to be installed, copy the corresponding image file to the USB drive.For example, execute the following command for SLES11sp4: [root@host~]# dd if=/root//Uboot/LinuxDUD/Chelsio-DriverUpdateDisk-SLES11sp4-x86_64-x.xx.x.x.img of=/dev/sda1 IMPORTANT:Please make sure the switch is upgraded to the latest available firmware, before proceeding with the operating system installation. NOTE: For more information on additional configuration options, please refer User's Guide. 5. Support Documentation ================================================================================ The documentation for this release can be found inside the /docs folder. It contains: - README - Release Notes - User's Guide 6. Customer Support ================================================================================ Please contact Chelsio support at support@chelsio.com for any issues regarding the product. ******************************************************************************** Copyright (C) 2016 Chelsio Communications. All Rights Reserved. The information in this document is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Chelsio Communications. Chelsio Communications assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document. Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system,or transmitted in any form or by any means without the express written consent of Chelsio Communications.