Realtek switch SoC docs

longan table: L3_ROUTER_MAC

Details

Name
L3_ROUTER_MAC
Feature
LAYER_3_ROUTING
Type
0
Entries
64
Data width
224
Control register
TBL_ACCESS_CTRL_1
Data register
TBL_ACCESS_DATA_1

Description

Defines a termination point for the L3 routing system. An arriving packet that matches the the Router-Mac entry, for example because the destination MAC of the packet matches the masked MAC of an entry in this table, will be matched against host and prefix routes for routing

Fields

Name LSB Bits Description
VALID 212 1

This router MAC entry is valid (1) or ignored (0)

PORT_TYPE 211 1

Port type: 0: Individual port of the switch, 1: a trunk port

PORT_ID 205 6

Port ID of the port the packet arrived at.

L3_INTF 204 1

Unclear, always set to 0 in SDK

INTF_ID 192 12

Unclear, set to the VLAN-ID by the SDK

MAC 128 48

A MAC address the router listens on for routing.

BMSK_RESERVED 116 12
BMSK_PORT_TYPE 115 1
BMSK_PORT_ID 109 6
BMSK_L3_INTF 108 1

Unclear, always set to 0 in the SDK.

BMSK_INTF_ID 96 12
BMSK_MAC 32 48
ACTION 0 3

Action when using this entry for a routing decision.

Values are according to the standard set of L3 routing action values:

  • 0: FORWARD (i.e. route)
  • 1: DROP
  • 2: TRAP2CPU
  • 3: COPY2CPU
  • 4: TRAP2MASTERCPU
  • 5: COPY2MASTERCPU
  • 6: HARDDROP