Realtek switch SoC docs

longan feature MAC_FORWARDING_CONTROL

Tables

Name Size Type Summary
TBL_ACCESS_L2_CTRL
L2_MC 16384 0
L2_UC 16384 0
L2_CAM_MC 64 1
L2_CAM_UC 64 1
MC_PORTMASK 1024 2

Registers

Offset Name Summary
MAC_FORWARDING_CONTROL
8fd8 L2_CTRL
8fdc L2_AGE_CTRL
8fe0 L2_PORT_AGE_CTRL
8fe4 L2_TRK_AGE_CTRL
8fec L2_PORT_SALRN
8ff4 L2_PORT_NEW_SA_FWD
9000 L2_DYN_PORT_MV_ACT
900c L2_DYN_PORT_MV_LRN
9010 L2_STT_PORT_MV_ACT
901c L2_STT_PORT_MV_LRN
9020 L2_STT_TRK_MV_ACT
903c L2_STT_TRK_MV_LRN
9044 L2_GLB_STT_PORT_MV_ACT
9048 L2_GLB_STT_PORT_MV_LRN
904c L2_PORT_MV_FORBID
9050 L2_TRK_MV_FORBID
9058 L2_PORT_MV_FORBID_CTRL
905c L2_PORT_SABLK_CTRL
9060 L2_PORT_DABLK_CTRL
9064 L2_UNKN_UC_FLD_PMSK

Set portmask for flooding of unicast packets with unknown destination.

9068 L2_BC_FLD_PMSK

Set portmask for flooding of broadcast packets.

906c L2_PORT_UC_LM_ACT
9078 L2_PORT_L2_MC_LM_ACT
9084 L2_PORT_IP4_MC_LM_ACT
9090 L2_PORT_IP6_MC_LM_ACT
909c L2_LRN_CONSTRT_CTRL

Set the maximum number of entries that can be learned and the action …

90a0 L2_LRN_CONSTRT_CNT

The current number of learned entries (read-only).

90a4 L2_LRN_PORT_CONSTRT_CTRL
9118 L2_LRN_PORT_CONSTRT_CNT
918c L2_LRN_TRK_CONSTRT_CTRL
928c L2_LRN_TRK_CONSTRT_CNT
938c L2_LRN_VLAN_CONSTRT_ENTRY
93cc L2_LRN_VLAN_CONSTRT_CNT
93ec L2_VLAN_CONSTRT_CTRL
93f0 L2_CONSTRT_PORT_CNT_DBG
93f4 L2_CONSTRT_TRK_CNT_DBG
93fc L2_CONSTRT_SYS_CNT_DBG
9400 L2_CONSTRT_VLAN_CNT_DBG
9404 L2_TBL_FLUSH_CTRL
940c L2_SRC_P_FLTR
9410 L2_SA_ACT_REF
9414 L2_HASH_FULL_CNT