Realtek switch SoC docs

longan table: L3_EGR_INTF

Details

Name
L3_EGR_INTF
Feature
LAYER_3_ROUTING
Type
4
Entries
128
Data width
64
Control register
TBL_ACCESS_CTRL_1
Data register
TBL_ACCESS_DATA_1

Description

Defines an Egress Interface for L3 routing

Allows to define the source MAC for an egress interface as an index into the SoC’s L3_ROUTER_MAC table of Source MACs and with an MTU from the list of MTUs stored in L3_IP_MTU_CTRL registers. Routing actions depending on the type of traffic are defined:

Where the master CPU is the master CPU in the stacked switches.

Fields

Name LSB Bits Description
DST_VID 41 12

Destination VLAN ID

Probably this VLAN-ID is assigned to the outgoing packet. It is unclear whether this still is subject to e.g. be dropped because of VLAN rules for the egress port.

SMAC_IDX 35 6

Index into the last 64 entries of L3_EGR_INTF_MAC. This MAC will be inserted as source MAC into the routed packet.

IP_MTU_IDX 32 3

Index into the L3_IP_MTU_CTRL(x) registers defining an IPv4 MTU

IP6_MTU_IDX 28 3

Index into the L3_IP6_MTU_CTRL(x) registers defining an IPv6 MTU.

IPMC_TTL_SCOPE 20 8

Appears to be the TTL subtracted for this route

IP6MC_HL_SCOPE 12 8

Appears to be IPv6 Hop Limit subtracted for this route

IP_ICMP_REDIRECT_ACT 9 3

Action when routing ICMP traffic

See the generic list of actions for this table.

IP6_ICMP_REDIRECT_ACT 6 3

Action when routing IPv6 ICMP traffic

See the generic list of actions for this table.

IP_PBR_ICMP_REDIRECT_ACT 3 3

Action when routing IPv4 ICMP traffic (Policy Based Routing)

See the generic list of actions for this table.

IP6_PBR_ICMP_REDIRECT_ACT 0 3

Action when routing IPv6 ICMP traffic (Policy Based Routing)

See the generic list of actions for this table.