162306a36Sopenharmony_ci============================== 262306a36Sopenharmony_ciLAN9303 Ethernet switch driver 362306a36Sopenharmony_ci============================== 462306a36Sopenharmony_ci 562306a36Sopenharmony_ciThe LAN9303 is a three port 10/100 Mbps ethernet switch with integrated phys for 662306a36Sopenharmony_cithe two external ethernet ports. The third port is an RMII/MII interface to a 762306a36Sopenharmony_cihost master network interface (e.g. fixed link). 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciDriver details 1162306a36Sopenharmony_ci============== 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciThe driver is implemented as a DSA driver, see ``Documentation/networking/dsa/dsa.rst``. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciSee ``Documentation/devicetree/bindings/net/dsa/lan9303.txt`` for device tree 1662306a36Sopenharmony_cibinding. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciThe LAN9303 can be managed both via MDIO and I2C, both supported by this driver. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciAt startup the driver configures the device to provide two separate network 2162306a36Sopenharmony_ciinterfaces (which is the default state of a DSA device). Due to HW limitations, 2262306a36Sopenharmony_cino HW MAC learning takes place in this mode. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciWhen both user ports are joined to the same bridge, the normal HW MAC learning 2562306a36Sopenharmony_ciis enabled. This means that unicast traffic is forwarded in HW. Broadcast and 2662306a36Sopenharmony_cimulticast is flooded in HW. STP is also supported in this mode. The driver 2762306a36Sopenharmony_cisupport fdb/mdb operations as well, meaning IGMP snooping is supported. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciIf one of the user ports leave the bridge, the ports goes back to the initial 3062306a36Sopenharmony_ciseparated operation. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciDriver limitations 3462306a36Sopenharmony_ci================== 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci - Support for VLAN filtering is not implemented 3762306a36Sopenharmony_ci - The HW does not support VLAN-specific fdb entries 38