Skip to contentSkip to conversation

net: stmmac: Add support for VLAN promiscuous mode

PATCH Applied Wong Vee Khee 2 participants 2 messages Apr 22, 2020 – Apr 23, 2020

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

PATCH v2 1/1 net: stmmac: Add support for VLAN promiscuous mode

From: "Chuah, Kim Tatt" <[email protected]>

For dwmac4, enable VLAN promiscuity when MAC controller is requested to enter promiscuous mode.

---
 drivers/net/ethernet/stmicro/stmmac/common.h  |  1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac4.h  |  1 +
 .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 67 +++++++++++++++++++
 3 files changed, 69 insertions(+)
drivers/net/ethernet/stmicro/stmmac/common.h +1 -0
index 6208a68a331d..127f75862962 100644
@@ -473,6 +473,7 @@ struct mac_device_info {
 	unsigned int xlgmac;
 	unsigned int num_vlan;
 	u32 vlan_filter[32];
+	unsigned int promisc;
 };
 
 struct stmmac_rx_routing {
drivers/net/ethernet/stmicro/stmmac/dwmac4.h +1 -0
index 28cac28253b8..61f3249bd724 100644
@@ -90,6 +90,7 @@
 #define GMAC_VLAN_CSVL			BIT(19)
 #define GMAC_VLAN_VLC			GENMASK(17, 16)
 #define GMAC_VLAN_VLC_SHIFT		16
+#define GMAC_VLAN_VLHT			GENMASK(15, 0)
 
 /* MAC VLAN Tag */
 #define GMAC_VLAN_TAG_VID		GENMASK(15, 0)
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +67 -0

100 lines not on this page · raw message

Signature · 7 lines
2.17.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw

From: Wong Vee Khee <[email protected]>
Date: Wed, 22 Apr 2020 11:31:06 +0800

Quoted 9 lines

From: "Chuah, Kim Tatt" <[email protected]>

For dwmac4, enable VLAN promiscuity when MAC controller is requested to enter promiscuous mode.

Applied, thank you.