Skip to content
Snippets Groups Projects
Commit 566de813 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ramips: prevent packet forwarding on mt7620 between switch ports during init (FS#103)


By default, forwarding between all ports is allowed on init. This is
problematic in cases where some ports are supposed to be isolated from
each other, most commonly LAN/WAN separation.

REG_ESW_PORT_PCR(port) has a destination mask for a particular port,
controlling what other ports it is allowed to send packets to.
Instead of initializing all to 0xff (all ports), allow each physical
port to send to the CPU port, and the CPU port to send to all other
ports.

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 81b5e8e5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment