Users Guide

Table Of Contents
To enable RRoCE, configure the QoS service policy on the switch in ingress and egress directions on all the interfaces. For more
information about this configuration, see Configure RoCE on the switch.
Configure RoCE on the switch
The following example describes the steps to configure RoCE on the switch. This configuration example uses priority 3 for RoCE.
1. Enter CONFIGURATION mode.
OS10# configure terminal
OS10 (config)#
2. Enable the Data Center Bridging Exchange protocol (DCBX).
OS10 (config)# dcbx enable
3. Create a VLAN. In this example, VLAN 55 switchs the RoCE traffic. You can configure any value from 1 to 4093.
OS10 (config)# interface vlan 55
4. Create a network-qos type class-map for priority flow control (PFC).
OS10 (config)# class-map type network-qos pfcdot1p3
OS10 (config-cmap-nqos)# match qos-group 3
5. Create queuing-type class-maps for enhanced transmission selection (ETS).
OS10 (config)# class-map type queuing Q0
OS10 (config-cmap-queuing)# match queue 0
OS10 (config)# class-map type queuing Q3
OS10 (config-cmap-queuing)# match queue 3
6. Create a QoS map for ETS.
OS10 (config)# qos-map traffic-class 2Q
OS10(config-qos-map)# queue 0 qos-group 0-2, 4-7
OS10(config-qos-map)# queue 3 qos-group 3
7. Create a policy-map for PFC.
OS10 (config)# policy-map type network-qos policy_pfcdot1p3
OS10(config-pmap-network-qos)# class pfcdot1p3
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)# pfc-cos 3
8. Create an egress policy-map.
OS10 (config)# policy-map type queuing policy_2Q
OS10 (config-pmap-queuing)# class Q0
OS10 (config-pmap-c-que)# bandwidth percent 30
OS10 (config-pmap-c-que)# exit
OS10 (config-pmap-queuing)# class Q3
OS10 (config-pmap-c-que)# bandwidth percent 70
9. Apply the dot1p trust globally or at the interface level. In this example, the dot1p trust is applied globally.
OS10 (config)# system qos
OS10 (config-sys-qos)# trust-map dot1p default
10. Perform the following configurations on all switch interfaces where you want to support RoCE:
a. Enter INTERFACE mode and enter the no shutdown command.
OS10# configure terminal
OS10 (config)# interface ethernet 1/1/1
OS10 (conf-if-eth1/1/1)# no shutdown
b. Change the switch port mode to Trunk mode.
OS10 (conf-if-eth1/1/1)# switchport mode trunk
Quality of service
1113