From PicOS-2.11, the vlan priority cos mapping is disabled default, user can enable it and configure special mapping in ingress interface. Enable vlan priority cos mapping will make the ingress packes which with different vlan_pcp enter different queues.
1, Before PicOS-2.11, the vlan priority cos mapping is enabled defaultly, and cannot configure the mapping.
2, If enable vlan-priority-cos-map and traffic can match the flow 'in_port=1,actions=output:2' in switch, the original traffic will send out from switch; if disable vlan-priority-cos-map, the traffic no mater attach which vlan_pcp will be change the vlan_pcp to 0 and send out from switch.
3, If enable vlan-priority-cos-map and cos-map , and traffic can match both of the mapping at same time, at last the cos-mapping working.
1, Check vlan priority cos mapping state:
2, Enable/disable vlan priority cos mapping:
ovs-vsctl set-vlan-priority-cos-map TRUE|FALSE
3, Once enable the mapping, user can see the default mapping is vlan_pcp 0~7 mapping queue 0~7.
ovs-vsctl show-vlan-priority-cos-map <interface>
4, configure the mapping:
ovs-vsctl set interface <interface> vlan_priority_mapping=<vlan_pcp>=q<queue number>[,<vlan_pcp>=q<queue number>,...]
5, user also can configure the untag packet same as one vlan_pcp and send to the mapping queue:
ovs-vsctl set interface <interface> vlan_priority_untagged=<vlan_pcp>
1, enable vlan-priority-cos-map, and show the mapping in interface te-1/1/9
2, configure the mapping, vlan_pcp:7 enter queue3, vlan_pcp:6 enter queue2, and others enter default queue0.
3, set untag packets same as vlan_pcp:7 and enter queue3.
4, add flow entry, in_port is port te-1/1/9, the untag packets which enter from port te-1/1/9 will be send to queue3.