net: stmmac: Add support for VLAN promiscuous mode
Subsystems (4)
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.
Signed-off-by Chuah, Kim Tatt <[email protected]>
Signed-off-by Ong Boon Leong <[email protected]>
Signed-off-by Tan, Tee Min <[email protected]>
Signed-off-by Wong Vee Khee <[email protected]>
--- 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
@@ -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
@@ -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
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.
Signed-off-by Chuah, Kim Tatt <[email protected]>Signed-off-by Ong Boon Leong <[email protected]>Signed-off-by Tan, Tee Min <[email protected]>Signed-off-by Wong Vee Khee <[email protected]>
Applied, thank you.