摘要 |
A packet is received via a first port of the network device, and a priority associated with the packet is determined. A first queue indicator from a plurality of queue indicators is determined based on the priority associated with the packet, wherein the plurality of queue indicators correspond to a plurality of priorities for transmitting the packet. A second queue indicator from the plurality of queue indicators is determined based on the priority associated with the packet. A second port that is to transmit the packet is determined, and a configuration of the second port is determined. One of the first queue indicator or the second queue indicator is selected based on the configuration of the second port, and a queue is selected from a plurality of queues associated with the second port based on the selected one of the first queue indicator or the second queue indicator, wherein the plurality of queues correspond to different priorities. Subsequent to enqueuing the packet in the selected queue, the packet is enqueued in the selected queue, and the packet is transmitted via the second port. |
主权项 |
1. A network device, comprising:
a plurality of ports; a queue controller that supports an Audio Video Bridging (AVB) protocol, the queue controller having a demultiplexer for each port of the plurality of ports, each demultiplexer coupled with a respective plurality of packet descriptor queues for the corresponding port of the plurality of ports; and an ingress processor, of a plurality of ingress processors corresponding to the plurality of ports, associated with an ingress port of the plurality of ports that receives a packet; wherein the ingress processor is configured to
determine an egress port, of the plurality of ports, for egress of the packet,set a first queue priority indicator for a packet descriptor for the packet based on a priority field in a header of the packet,set a second queue priority indicator for the packet descriptor based on the priority field, andsend the first queue priority indicator and the second queue priority indicator to the queue controller; the network device further comprising an egress processor, associated with the egress port, that
determines whether the egress port is coupled to an AVB device or a non-AVB device, andif the egress port is coupled to the non-AVB device, determines whether a queue priority override field for the egress port is set to a first value that indicates that the packet descriptor should be enqueued based on the first queue priority indicator; wherein a first demultiplexer of the queue controller that corresponds to the egress port is configured to
select a packet descriptor queue, for the packet descriptor from a first plurality of packet descriptor queues of the queue controller for the egress port, that corresponds to i) the first queue priority indicator if the egress port is coupled to the AVB device, ii) the second queue priority indicator if the egress port is not coupled to the AVB device and the queue priority override field is not set to the first value, or iii) the first queue priority indicator if the egress port is not coupled to the AVB device and the queue priority override field is set to the first value, andenqueue the packet descriptor in the selected packet descriptor queue;wherein the network device is configured to transmit packets from the first plurality of packet descriptor queues via the egress port. |