Skip to contentSkip to conversation

net: dsa: microchip: add support for vlan operations

PATCH Superseded Arun Ramadoss 1 participant 1 message May 2, 2022

Subsystems (5)

v12 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v12 13/13 net: dsa: microchip: add support for vlan operations

From: Prasanna Vengateshan <[email protected]>

Support for VLAN add, del, prepare and filtering operations.

The VLAN aware is a global setting. Mixed vlan filterings are not supported. vlan_filtering_is_global is made as true in lan937x_setup function.

---
 drivers/net/dsa/microchip/lan937x_dev.h  |  10 ++
 drivers/net/dsa/microchip/lan937x_main.c | 186 +++++++++++++++++++++++
 2 files changed, 196 insertions(+)
drivers/net/dsa/microchip/lan937x_dev.h +10 -0
index da8c708a03ea..2ce4d60b477e 100644
@@ -104,6 +104,16 @@ struct lan_alu_struct {
 	u8	mac[ETH_ALEN];
 };
 
+struct lan937x_vlan {
+	/* entry 1 */
+	bool valid;
+	u8 fid;
+	/* entry 2 */
+	u32 untag_prtmap;
+	/* entry 3 */
+	u32 fwd_map;
+};
+
 extern const struct dsa_switch_ops lan937x_switch_ops;
 extern const struct ksz_dev_ops lan937x_dev_ops;
 extern const struct mib_names lan937x_mib_names[];
drivers/net/dsa/microchip/lan937x_main.c +186 -0

210 lines not on this page · raw message

Signature · 1 line
2.33.0