Add trunking support and initial L2 setup

This commit is contained in:
logicog
2025-07-25 22:50:27 +02:00
parent 891ee08243
commit fcd1f85eb6
3 changed files with 130 additions and 56 deletions
+9
View File
@@ -98,6 +98,15 @@
#define RTL837x_L2_TBL_CTRL 0x53d4
#define RTL837x_PVID_BASE_REG 0x4e1c
/*
* Egress / ingress filtering
*/
// 2 bits per port: allow tagged (01) / untagged (10) and all (00)
#define RTL837x_REG_INGRESS 0x4e10
#define INGR_ALLOW_TAGGED 1
#define INGR_ALLOW_UNTAGGED 2
#define INGR_ALLOW_ALL 0
/*
* Mirroring
*/