Datasheet
2016-2017 Microchip Technology Inc. DS00002112B-page 45
KSZ8795CLX
If ENB = 01, the IP address and mask or IP protocol is enabled to be tested accordingly. If ENB = 10, source
and destination addresses are compared. The drop/forward decision is based on the EQ bit setting.
- When MD = 11
If ENB = 00, protocol comparison is enabled.
If ENB = 01, TCP address comparison is selected.
If ENB = 10, UDP address comparison is selected.
If ENB = 11, the sequence number of the TCP is compared.
• S/D: Source or Destination Select
- When = 0, the destination address/port is used to compare; and when = 1, the source is chosen.
• E/Q: Comparison Algorithm
- When = 0, a match if they are not equal. When = 1, a match if they are equal.
• MAC Address [47:0]
- MAC source or destination address
• TYPE [15:0]
- MAC ether type.
• IP Address [31:0]
- IP source or destination address.
• IP Mask [31:0]
- IP address mask for group address filtering.
• MAX Port [15:0], MIN Port [15:0]/Sequence Number [31:0]
- The range of TCP port number or sequence number matching.
• PC [1:0]: Port Comparison
- When = 00, the comparison is disabled; when = 01, matches either one of MAX or MIN; when = 10, a match if
the port number is in the range of MAX to MIN; and when = 11, a match if the port number is out of the range.
• PRO [7:0]
- IP Protocol to be matched.
•FME
- Flag Match Enable – When = 1, enable TCP FLAG matching.
• FLAG [5:0]
- TCP Flag to be matched.
Action Field
• PM [1:0]: Priority Mode
- When = 00, no priority is selected, the priority is determined by the QoS/Classification is used. When = 01, the
priority in P bit field is used if it is greater than QoS result. When = 10, the priority in P bit field is used if it is
smaller than QoS result. When = 11, the P bit field will replace the priority determined by QoS.
• P [2:0]
-Priority.
• RPE: Remark Priority Enable
- When = 0, no remarking is necessary. When = 1, the VLAN priority bits in the tagged packets are replaced by
RP bit field in the list.
• RP [2:0]
- Remarked priority.
• MM [1:0]: Map Mode
- When = 00, no forwarding remapping is necessary. When = 01, the forwarding map in FORWORD is OR’ed
with the Forwarding map from the look-up table. When = 10, the forwarding map in FORWORD is AND’ed
with the Forwarding map from the look-up table. When = 11, the forwarding map in FORWORD replaces the
forwarding map from the look-up table.
• FORWARD Bits[4:0]: Forwarding Port(s) - Each bit indicates the forwarding decision of one port.
Processing Field
• FRN Bits[3:0]: First Rule Number
- Assign which entry with its Action Field in 16 entries is used in the rule set.
• RULESET Bits[15:0]: Rule Set