KSZ8862-16_10 MICREL [Micrel Semiconductor], KSZ8862-16_10 Datasheet - Page 108

no-image

KSZ8862-16_10

Manufacturer Part Number
KSZ8862-16_10
Description
2-Port Ethernet Switch with Non-PCI Interface and Fiber Support
Manufacturer
MICREL [Micrel Semiconductor]
Datasheet
VLAN Table
The KSZ8862M uses the VLAN table to perform look-ups. If 802.1Q VLAN mode is enabled (SGCR2[15]), this table will
be used to retrieve the VLAN information that is associated with the ingress packet. This information includes FID (filter
ID), VID (VLAN ID), and VLAN membership as described in Table 20:
If 802.1Q VLAN mode is enabled, then the KSZ8862M will assign a VID to every ingress packet. If the packet is untagged
or tagged with a null VID, then the packet is assigned with the default port VID of the ingress port. If the packet is tagged
with non null VID, the VID in the tag will be used. The look up process will start from the VLAN table look up. If the VID is
not valid, the packet will be dropped and no address learning will take place. If the VID is valid, the FID is retrieved. The
FID+DA and FID+SA lookups are performed. The FID+DA look up determines the forwarding ports. If FID+DA fails, the
packet will be broadcast to all the members (excluding the ingress port) of the VLAN. If FID+SA fail, the FID+SA will be
learned.
Micrel, Inc.
August 2010
Bit
19
18-16
15-12
11-0
VLAN Table Lookup Examples:
Examples:
1. VLAN Table Read (read the third entry, at the indirect address offset 0x02)
2. VLAN Table Write (write the seventh entry, at the indirect address offset 0x06)
1
Default Value
111
0x0
0x001
Then
Write to reg. IACR with 0x1402 (set indirect address and trigger a read VLAN table operation)
Read reg. IADR5 (VLAN table bits 19-16)
Read reg. IADR4 (VLAN table bits 15-0)
Write to reg. IADR5 (VLAN table bits 19-16)
Write to reg. IADR4 (VLAN table bits 15-0)
Write to reg. IACR with 0x1406 (set indirect address and trigger a read VLAN table operation)
R/W
RW
R/W
R/W
R/W
Description
Valid
1: specifies that this entry is valid, the look up result will be used
0: specifies that this entry is not valid
Membership
Specifies which ports are members of the VLAN. If a DA look up fails (no match in
both static and dynamic tables), the packet associated with this VLAN will be
forwarded to ports specified in this field. For example: 101 means port 3 and 1 are in
this VLAN.
FID
Specifies the Filter ID. The KSZ8862M supports 16 active VLANs represented by
these four bit fields. The FID is the mapped ID. If 802.1Q VLAN is enabled, the look
up will be based on FID+DA and FID+SA.
VID
Specifies the IEEE 802.1Q 12 bits VLAN ID.
Table 20. VLAN Table Format (16 Entries)
108
KSZ8862-16/32MQL
M9999-081310-3.1

Related parts for KSZ8862-16_10