User`s guide

Chapter V. WD-UDP
Chelsio T5/T4 Unified Wire For Linux Page 88
Now, preload libcxgb4_sock_debug using the command mentioned below when starting your
application:
root@host]# LD_PRELOAD=libcxgb4_sock_debug.so CXGB4_SOCK_DEBUG=-1
<pathto>/your_application
In addition to preloading libcxgb4_sock.so, you must 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
#
# e.g.
# endpoint {
# interface=eth2.5
# port = 8000 vlan = 5 priority=1
# }
# endpoint { interface=eth2 port=9999}
#
# endpoints that bind to port 0 (requesting the host allocate a port)
# can be accelerated with port=0:
#
# endpoint {interface=eth1 port=0}
#
Assume your T5/T4 interface is eth2. To accelerate all applications that preload libcxgb4_sock
using eth2, you only need one entry in /etc/libcxgb4_sock.conf:
endpoint {interface=eth2 port=0}