I have board with two ethernet interfaces(MII).
In WEC7 me need two interface CPSW3G1 and CPSW3G2, with different IP on each port.
If i use standart driver as switch (defines BSP_ETH_CPSW3G_DRIVER) work both Port but with one IP(CPSW3G1) on each port. it says about the operability both port.
If I use single mac port(BSP_ETH_CPGMAC_DRIVER), WEC7 detect bough interface CPSW3G1, CPSW3G2, but work only CPSW3G1.
Problem with CPSW3G2 following, after insert cable in Port2 occurs interrupt and driver call Cpsw3g_MiniportHandleInterrupt and MiniportAdapterContext contains information about first Port. I understand that for NDIS driver need inform the interrupt source(may be in ISR) to switch structure? or am I wrong? and how do it if i right?