主权项 |
1. A method, implemented in a network device that supports an audio video bridge (AVB) protocol, the method comprising:
receiving a packet at an ingress port of a plurality of ports of the network device, each of the plurality of ports having a respective ingress port processor; performing, at an ingress port processor of the ingress port, a lookup in a database using header information of the packet to obtain queue priority override information that indicates how the packet is to be enqueued at an egress port of the plurality of ports; setting, at the ingress port processor and based on the queue priority override information obtained from the lookup, a first queue priority indicator to a first value and a second queue priority indicator to a second value, for a packet descriptor corresponding to the packet; sending, by the ingress port processor, the packet descriptor with the first queue priority indicator and the second queue priority indicator to a queue controller having a plurality of demultiplexers, each demultiplexer corresponding to a respective port of the plurality of ports, the plurality of demultiplexers having a demultiplexer that corresponds to the egress port of the plurality of ports for the packet, wherein the demultiplexer is coupled with each of a plurality of packet descriptor queues for the egress port; determining, by the queue controller, whether the egress port is coupled to an AVB device or a non-AVB device; selecting, by the queue controller, the first queue priority indicator in response to determining that the egress port is coupled to the non-AVB device; selecting, by the queue controller, the second queue priority indicator in response to determining that the egress port is coupled to the AVB device; enqueueing, by the demultiplexer, the packet descriptor corresponding to the packet in a descriptor queue of the plurality of packet descriptor queues for the egress port that corresponds to the selected queue priority indicator; and transmitting the packet via the egress port according to the descriptor queue. |