
Chapter V. WD-UDP
Chelsio T5/T4 Unified Wire For Linux Page 86
egress, if the destination IP address will not route out via the T5/T4 device, then it too will
not be accelerated.
4.1.2. Using libcxgb4_sock
The libcxgb4_sock library utilizes the Linux RDMA Verbs subsystem, and thus requires the
RDMA modules be loaded. Ensure that your systems load the iw_cxgb4 and rdma_ucm
modules:
[root@host]# modprobe iw_cxgb4
[root@host]# modprobe rdma_ucm
Now, preload libcxgb4_sock, using one of the methods mentioned below when starting your
application:
Preloading using wdload script:
[root@host]# PROT=UDP wdload <pathto>/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.
Preloading manually
Create a configuration file that defines which UDP endpoints should be accelerated, their vlan
and priority if any, as well as which T5/T4 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
# vlan = vlan-id
# priority = vlan-priority
#
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 <pathto>/your_application
Comentários a estes Manuais