Skip to contentSkip to conversation

net: stmmac: Add support for VLAN promiscuous mode

PATCH In review Boon Khai Ng 1 participant 2 messages Mar 30, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/8 net: stmmac: Add support for VLAN promiscuous mode

For dwxgmac2, enable VLAN promiscuity when MAC Controller is requested to enter promiscuous mode.

---
 .../net/ethernet/stmicro/stmmac/dwxgmac2.h    |  1 +
 .../ethernet/stmicro/stmmac/dwxgmac2_core.c   | 67 +++++++++++++++++++
 2 files changed, 68 insertions(+)
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h +1 -0
index 4c92828f21d6..3f11b2c52324 100644
@@ -69,6 +69,7 @@
 #define XGMAC_VLAN_CT			BIT(1)
 #define XGMAC_VLAN_OB			BIT(0)
 #define XGMAC_VLAN_HASH_TABLE		0x00000058
+#define XGMAC_VLAN_VLHT			GENMASK(15, 0)
 #define XGMAC_VLAN_INCL			0x00000060
 #define XGMAC_VLAN_VLTI			BIT(20)
 #define XGMAC_VLAN_CSVL			BIT(19)
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +67 -0

100 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw

Please ignore this review, send out by accident.

My appologies for sending out this review by accident, this is meant for internal reivew, kindly ignore and close this thread. Thanks.