Filer Example—Ip Diff-Serv Code Points Filing; Filer Example—Tcp And Udp Port Filing - Freescale Semiconductor MPC8313E Family Reference Manual

Powerquicc ii pro integrated processor
Hide thumbs Also See for MPC8313E:
Table of Contents

Advertisement

Enhanced Three-Speed Ethernet Controllers
Table 15-155. Filer Table Example—802.1p Priority Filing (continued)
RQCTRL Fields
Table
Entry
GPI CLE REJ AND
6
0
0
0
7
0
0
0
15.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
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.
Table 15-156. Filer Table Example—IP Diff-Serv Code Points Filing
RQCTRL Fields
Table
Entry
GPI CLE REJ AND
0
0
0
0
1
0
0
0
2
0
0
0
3
0
0
0
4
0
0
0
5
0
0
0
6
0
0
0
7
0
0
0
15.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
15-157. 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.
MPC8313E PowerQUICC II Pro Integrated Processor Family Reference Manual, Rev. 3
15-172
Q
CMP
PID
0
000_110
00
1001
0
000_111
00
1001
Q
CMP
PID
0
001_000
01
1010 0x0000_00E0 File class 7 to queue 8 (TOS >= 0xE0)
0
001_001
01
1010 0x0000_00C0 File class 6 to queue 9 (TOS >= 0xC0)
0
001_010
01
1010 0x0000_00A0 File class 5 to queue 10 (TOS >= 0xA0)
0
001_011
01
1010 0x0000_0080 File class 4 to queue 11 (TOS >= 0x80)
0
000_100
01
1010 0x0000_0060 File class 3 to queue 4 (TOS >= 0x60)
0
001_100
01
1010 0x0000_0040 File class 2 to queue 12 (TOS >= 0x40)
0
010_100
01
1010 0x0000_0020 File class 1 to queue 20 (TOS >= 0x20)
0
011_100
01
1010
RQPROP
0x0000_0001 File priority 1 to ring 6
All zeros
File undefined 802.1p or priority 0 to
ring 7—Default always matches
Table
15-156. The example relies on the fact that
RQPROP
All zeros
File class 0 to queue 28 (TOS >= 0x00)
or file to ring 4 by default
Comment
0x0000_1809
0x0000_1C09
Comment
Freescale Semiconductor
RQCTRL
Word
RQCTRL
Word
0x0000_202A
0x0000_242A
0x0000_282A
0x0000_2C2A
0x0000_102A
0x0000_302A
0x0000_502A
0x0000_702A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc8313

Table of Contents