12–Windows Server 2016
Configuring QoS for RoCE
167
AH0054602-00 A
8.
To disable priority flow control on any other priority, issue the following
commands:
PS C:\Users\Administrators>
Disable-NetQosFlowControl 0,1,2,3,5,6,7
PS C:\Users\Administrator>
Get-NetQosFlowControl
Priority Enabled PolicySet IfIndex IfAlias
-------- ------- --------- ------- -------
0 False Global
1 False Global
2 False Global
3 False Global
4 True Global
5 False Global
6 False Global
7 False Global
9.
To configure QoS and assign relevant priority to each type of traffic, issue
the following commands (where Priority 4 is tagged for RoCE and Priority 0
is tagged for TCP):
PS C:\Users\Administrators>
New-NetQosPolicy "SMB"
-NetDirectPortMatchCondition 445 -PriorityValue8021Action 4 -PolicyStore
ActiveStore
PS C:\Users\Administrators>
New-NetQosPolicy "TCP" -IPProtocolMatchCondition
TCP -PriorityValue8021Action 0 -Policystore ActiveStore
PS C:\Users\Administrator>
Get-NetQosPolicy -PolicyStore activestore
Name : tcp
Owner : PowerShell / WMI
NetworkProfile : All
Precedence : 127
JobObject :
IPProtocol : TCP
PriorityValue : 0
Name : smb
Owner : PowerShell / WMI
NetworkProfile : All
Precedence : 127
JobObject :