Hi, Peter,

Thanks for you explanation. I have learned some insights on how the PHY/MAC
works and MII.

FYI, the patch works. I have tested with following /etc/config/network to
send out the tagged packet:

config 'switch'
        option 'name' 'eth1'
        option 'reset' '1'
        option 'enable_vlan' '1'
        option 'enable' '1'

config 'switch_vlan'
        option 'device' 'eth1'
        option 'vlan' '1'
        option 'vid' '1'
        option 'ports' '0t 1t 5t'

config 'switch_vlan'
        option 'device' 'eth1'
        option 'vlan' '2'
        option 'vid' '2'
        option 'ports' '0t 1t 5t'

grep dmesg on eth:
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: connected to PHY at ag71xx-mdio:14 [uid=03026071, driver=Generic PHY]
eth1: Atheros AG71xx at 0xba000000, irq 5
*eth1: ADM6996FC model PHY found.*
eth1: connected to PHY at ag71xx-mdio:00 [uid=10230007, driver=Infineon
ADM6996]
eth0: link up (100Mbps/Full duplex)
eth0: link down
eth0: link up (100Mbps/Full duplex)
eth1: link up (100Mbps/Full duplex)

Regards,
Chun Yeow
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to