User Manual

Rev 2.2-1.0.1
Mellanox Technologies
33
1.5.2.9 Using rdma_cm Tests
Step 1. Use rdma_cm test on the server.
# ucmatose
cmatose: starting server
initiating data transfers
completing sends
receiving data transfers
data transfers complete
cmatose: disconnecting
disconnected
test complete
return status 0
#
Step 2. Use rdma_cm test on the client.
# ucmatose -s 20.4.3.219
cmatose: starting client
cmatose: connecting
receiving data transfers
sending replies
data transfers complete
test complete
return status 0
#
This server-client run is without PCP or VLAN because the IP address used does not belong to a
VLAN interface. If you specify a VLAN IP address, then the traffic should go over VLAN.
1.5.2.10 Type Of Service (TOS)
The TOS field for rdma_cm sockets can be set using the rdma_set_option() API, just as it is set
for regular sockets. If a
TOS is not set, the default value (0) is used. Within the rdma_cm kernel
driver, the TOS field is converted into an SL field. The conversion formula is as follows:
SL = TOS >> 5 (e.g., take the 3 most significant bits of the TOS field)
In the hardware driver, the SL field is converted into PCP by the following formula:
PCP = SL & 7 (take the 3 least significant bits of the TOS field)
SL affects the PCP only when the traffic goes over tagged VLAN frames.