7–RoCE Configuration
Preparing the Ethernet Switch
130
BC0154501-00 P
To configure the Cisco switch:
1.
Open a config terminal session as follows:
Switch#
config terminal
switch(config)#
2.
Configure the quality of service (QoS) class map and set the RoCE priority
(
cos
) to match the adapter (5) as follows:
switch(config)#
class-map type qos class-roce
switch(config)#
match cos 5
3.
Configure queuing class maps as follows:
switch(config)#
class-map type queuing class-roce
switch(config)#
match qos-group 3
4.
Configure network QoS class maps as follows:
switch(config)#
class-map type network-qos class-roce
switch(config)#
match qos-group 3
5.
Configure QoS policy maps as follows:
switch(config)#
policy-map type qos roce
switch(config)#
class type qos class-roce
switch(config)#
set qos-group 3
6.
Configure queuing policy maps to assign network bandwidth. In this
example, use a value of 50 percent:
switch(config)#
policy-map type queuing roce
switch(config)#
class type queuing class-roce
switch(config)#
bandwidth percent 50
7.
Configure network QoS policy maps to set priority flow control for no-drop
traffic class as follows:
switch(config)#
policy-map type network-qos roce
switch(config)#
class type network-qos class-roce
switch(config)#
pause no-drop
8.
Apply the new policy at the system level as follows
switch(config)#
system qos
switch(config)#
service-policy type qos input roce
switch(config)#
service-policy type queuing output roce
switch(config)#
service-policy type queuing input roce
switch(config)#
service-policy type network-qos roce