Symptom
When the following QoS policy that has match CoS statement is attached to the ingress direction of port-channel (or ethernet) interface as follows, the QoS policy does not work properly:
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 99-105,107-111,120-121,201-205,301-305,401-405,501-508,601-608,701-708,801-850
switchport trunk native vlan 99
service-policy type qos input cos-match <<<<<---- match CoS
channel-group auto mode on mac-pinning
no shutdown
system vlan 103-104,107-111
max-ports 32
state enabled
The incoming packets has CoS=1, CoS=2, CoS=5 and CoS=6 markings, but the QoS policy only matched all those packets as CoS=0 instead of the actual CoS values.
Conditions
Attaching ingress QoS policy with match CoS statemenets.