6–RoCE Configuration
Preparing the Ethernet Switch
57
AH0054602-00 A
2.
Configure quality of service (QoS) class map and set the RoCE priority to
match the adapter (5).
switch(config)#
class-map type qos class-roce
switch(config)#
match cos 5
3.
Configure queuing class maps.
switch(config)#
class-map type queuing class-roce
switch(config)#
match qos-group 3
4.
Configure network QoS class maps.
switch(config)#
class-map type network-qos class-roce
switch(config)#
match qos-group 3
5.
Configure QoS policy maps.
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.
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.
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
9.
Assign a VLAN ID to the switch port to match the VLAN ID assigned to the
adapter (5).
switch(config)#
interface ethernet x/x
switch(config)#
switchport mode trunk
switch(config)#
switchport trunk allowed vlan 1,5