Information
Enhanced Three-Speed Ethernet Controllers
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
Freescale Semiconductor 16-151
16.6.4.2.7 Filer Example—IP Diff-Serv Code Points Filing
This example demonstrates use of rule priority for determining class selector codepoints (RFC 2474) from
the IP TOS property. An example filer table is shown in Table 16-142. The example relies on the fact that
the first rule matched terminates the search, hence successively lower Diff-Serv codepoint ranges can be
compared in each step until the default (zero or greater) range is reached. By default, property 1010 (IP
TOS) takes the value 0x00 if no IP headers were recognized, therefore the table search always terminates.
16.6.4.2.8 Filer Example—TCP and UDP Port Filing
This example demonstrates rule clusters and AND-combined entries for filing packets based on transport
protocol and well-known port numbers in a termination application. An example filer table is shown in
Table 16-143. The example contains two clusters; the first is entered only for TCP packets, the second is
entered only for UDP packets. A default filing rule catches the case where neither TCP nor UDP headers
are found. Each cluster compares source port number (property 1111) against a list of server ports, and files
the packets accordingly. Note that entries 1 and 2 form an AND rule for checking that the port number 20
and port number < 22. Entries 4 and 5 are initially set up to always fail (zero port number), and thus
comprise empty entries that can be used at a later time.
6 0 0 0 000_110 00 1001 0x0000_0001 File priority 1 to ring 6 0x0000_1809
7 0 0 0 000_111 00 1001 0x0000_0000 File undefined 802.1p or priority 0 to
ring 7—Default always matches
0x0000_1C09
Table 16-142. Filer Table Example—IP Diff-Serv Code Points Filing
Table
Entry
RQCTRL Fields
RQPROP Comment
RQCTRL
Word
CLE REJ AND Q CMP PID
0 0 0 0 001_000 01 1010 0x0000_00E0 File class 7 to queue 8 (TOS >= 0xE0) 0x0000_202A
1 0 0 0 001_001 01 1010 0x0000_00C0 File class 6 to queue 9 (TOS >= 0xC0) 0x0000_242A
2 0 0 0 001_010 01 1010 0x0000_00A0 File class 5 to queue 10 (TOS >= 0xA0) 0x0000_282A
3 0 0 0 001_011 01 1010 0x0000_0080 File class 4 to queue 11 (TOS >= 0x80) 0x0000_2C2A
4 0 0 0 000_100 01 1010 0x0000_0060 File class 3 to queue 4 (TOS >= 0x60) 0x0000_102A
5 0 0 0 001_100 01 1010 0x0000_0040 File class 2 to queue 12 (TOS >= 0x40) 0x0000_302A
6 0 0 0 010_100 01 1010 0x0000_0020 File class 1 to queue 20 (TOS >= 0x20) 0x0000_502A
7 0 0 0 011_100 01 1010 0x0000_0000 File class 0 to queue 28 (TOS >= 0x00)
or file to ring 4 by default
0x0000_702A
Table 16-141. Filer Table Example—802.1p Priority Filing (continued)
Table
Entry
RQCTRL Fields
RQPROP Comment RQCTRL Word
CLE REJ AND Q CMP PID