This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2EXEVM: Why tda2xx-evm ethernet switch mode has only one network interface eth0?

Part Number: TDA2EXEVM

Hi,

      Here my SDK version is :3.0.8. my board is :dra7xx-evm.  Now i want to use ethernet switch. I found that in the driver ,dual-mac mode and switch mode are two different mode. If i use dual-mac mode, when i execute ifconfig,i will get two ethernet interfaces: eth0 & eth1.  But if i use switch mode, when i execute ifconfig, i only get one ethernet interface eth0. 

      My question is: how can i get two ethernet interfaces when i use switch mode ? ??

  • Hello. 

    When configured as dual-MAC, each port is managed/serviced independently so you will have eth0 & eth1 as you note. When configured as a switch, it is a 3-port switch with two external ports and one internal port. The host is configured to service this internal port and therefore you see eth0 only.

    Please take a look to https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW.html?highlight=ethernet#cpsw, which describes. This is a Processor SDK Linux link but gives a good overview.

    Best regards,

    Dave

  • (1)So,that is to say,in switch mode, the internal port must need one external port to work together, so the other external port can be seen as "eth0" by "ifconfig"?

    (2)What if i want to see both "eth0" and "eth1" by command "ifconfig" in switch mode ??? Can it be possible to realize?

    (3) In dual-mac mode,

          eth0(192.168.42.120) connected to ----------->pc1(192.168.42.121) 

          eth1(192.168.42.170) connected to ------------>pc2(192.168.42.171)

    on pc1,i do ping 192.168.42.171,no response.

    but  if i config port0&&port1&&port2 vlan-id as 0x0, then on pc1,i do ping 192.168.42.171,success.

    On tda2xx board,i ping 192.168.42.121, ping 192.168.42.171,only one is success,another is failed. How to solve this problem???? I want both  of the two interfaces can ping success. What should i do ? Is it possible???

  • hello. 

    We working towards migration in mainline - https://patchwork.kernel.org/cover/11252771/

    Depending on acceptance and timeframe we will look at options for future SDK inclusion, or you can review the mainline driver and pack port. 

    Can you share more information on your usage and need to see both ports (eth0 & eth1) explicitly?

    Best regarsd,

    Dave