Realtek switch SoC docs

maple table: VLAN

Details

Name
VLAN
Feature
TABLE_ACCESS
Type
0
Entries
4096
Data width
64
Control register
TBL_ACCESS_CTRL_0
Data register
TBL_ACCESS_DATA_0

Description

Configures the switch’s behavior for an inner VLAN-ID, i.e. after the packet has passed the ingress filter and possible VLAN-ID translation. At this point the switch needs to decide whether to look up the entry (Unicast/Multicast) for the forwarding decision based on the Forwarding ID (Multiple Station ID), or based on the inneer VLAN-ID. The SDK exclusively uses lookup based on the VID. What to do when an entry is unknown in the L2 tables is defined in the VLAN_PROFILE registers, which are referenced.

Fields

Name LSB Bits Description
MBR 32 29

VLAN member port bitmask

FID_MSTI 5 6

Forwarding ID for the MSTI this VLAN is associated with

L2_HASH_KEY_UC 4 1

Specifies how the SoC will calculate the hash to look up entries in the L2_UC hash table. 0: Use VID, 1: Use FID

L2_HASH_KEY_MC 3 1

Specifies how the SoC will calculate the hash to look up entries in the L2_MC hash table. 0: Use VID, 1: Use FID

VLAN_PROFILE 0 3

References the VLAN_PROFILE registers with definitions regarding how to forward traffic in this VLAN (miss-flooding masks and learning enabled/disabled).