6–RoCE Configuration
Configuring RoCE on the Adapter for ESX
82
AH0054601-00 B
Configuring MTU
To modify MTU for RoCE interface, change the MTU of the corresponding
vSwitch. Set the MTU size of the RDMA interface based on MTU of the vSwitch by
issuing the following command:
#
esxcfg-vswitch -m <new MTU> <RoCE vswitch name>
For example:
#
esxcfg-vswitch -m 4000 roce_vs
# esxcli rdma device list
Name Driver State MTU Speed Paired Uplink Description
------- ------- ------ ---- ------- ------------- -------------------------------
vmrdma0 qedrntv Active 2048 25 Gbps vmnic0 QLogic FastLinQ QL45xxx RDMA Interface
vmrdma1 qedrntv Active 1024 25 Gbps vmnic1 QLogic FastLinQ QL45xxx RDMA Interface
RoCE Mode and Statistics
For the RoCE mode, ESXi requires concurrent support of both RoCE v1 and v2.
The decision regarding which RoCE mode to use is made during queue pair
creation. The ESXi driver advertises both modes during registration and
initialization.
To view RoCE statistics, issue the following command:
#
esxcli rdma device stats get -d vmrdma0
Packets received: 0
Packets sent: 0
Bytes received: 0
Bytes sent: 0
Error packets received: 0
Error packets sent: 0
Error length packets received: 0
Unicast packets received: 0
Multicast packets received: 0
Unicast bytes received: 0
Multicast bytes received: 0
Unicast packets sent: 0
Multicast packets sent: 0
Unicast bytes sent: 0
Multicast bytes sent: 0
Queue pairs allocated: 0
Queue pairs in RESET state: 0
Queue pairs in INIT state: 0
Queue pairs in RTR state: 0
Queue pairs in RTS state: 0