
MT90880/1/2/3
Data Sheet
59
Zarlink Semiconductor Inc.
Unmatched traffic is also forwarded to the CPU using queue 0. This allows the CPU to analyse the traffic to
work out what should be done with it. Alternatively, if the drop threshold on queue 0 is set very small,
unmatched traffic can be automatically discarded.
6.8.2 Example Classification Scheme
The following example shows how to set up the packet classification for a typical expected scenario. The
MT9088x is expecting the following four classes of traffic:
1.
2.
3.
4.
5.
TDM traffic using the protocol stack Ethernet - VLAN - CDP
TDM traffic using the protocol stack Ethernet - IPv4 - UDP - CDP
Data traffic to an external DSP using the protocol stack Ethernet - IPv4 - xxx
CPU control traffic using the protocol stack Ethernet - IPv4 - TCP - xxx
All other traffic - routed by default to CPU queue 0
Traffic Class 1: Ethernet - VLAN - CDP
Configure the mask and match registers in the packet engine to direct TDM traffic to the WAN interface.
Table 21 - Pattern Matching for Example Traffic Class 1
Protocol Field
Mask
Match / Comment
Ethernet/VLAN
Destination MAC address
Mask
If the MAC block is programmed into promiscuous
mode then the destination MAC address must be
matched,
Source MAC address
Mask
Tag Type
Allow match
Must be 0x8100
VLAN Tag
Allow match
Must be set to the appropriate value for TDM traffic.
Length / Type field
Allow match
Must be set to the appropriate type for TDM traffic.
Will
require allocation of an Ethertype by the IEEE.
Context Descriptor
Version
Allow match
Must be 0b000
Context Switch
Mask
Context ID[11:7]
Allow match
Must be 0b00000
Context ID[6:0]
Mask
Remainder of the header
Mask