Tool/software: Linux
Hello,
We are using the TI AM437x Industrial Development Kit to prototype Ethernet configurations of our custom hardware design. Our custom hardware design has two Ethernet interfaces, one from the PRUETH1 MII interface and the other on the CPSW RMII1 interface. So for prototyping purposes on the AM437x IDK, the Gigabit Interface from the CPSW was used (eth0 in Linux) and PRUETH1 (eth2 in Linux) is used.
We are looking to setup a network bridge between the two interfaces to allow traffic to flow through the IDK two Ethernet ports. The setup of the IDK with two devices connected on either side is as follows:
+---------+ +-------------------------------+ +----------+
| | | CPSW Gigabit PRUETH1 | | |
| | +--------+ +--------+ | |
| | | | +-----+ | | | |
| +------+ eth0 +---+ br0 +---+ eth2 +-------+ |
| | | | +-----+ | | | |
| | +--------+ +--------+ | |
| | | | | |
+---------+ +-------------------------------+ +----------+
Device #1 TI AM437x IDK Device #2
The commands we run in order to setup the network bridge are:
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth2
ifconfig eth0 up
ifconfig eth2 up
ifconfig br0 192.168.10.100 netmask 255.255.255.0
The bridged interface (br0) comes up correctly and we are able to successfully ping/etc between devices #1 and #2. Our network setup is going to include VLAN traffic going between Device #1 and #2. However, we are unable to communicate between Device #1 or #2 if any of the traffic is tagged with a VLAN ID. In the scenario where traffic is going from Device #2 to Device #1, tcpdump shows that traffic is coming in eth2 and that it goes out eth0. In reality though, the traffic will never be received by Device #1.
Is there a known limitation with the CPSW interface that doesn’t allow VLAN tagged traffic to pass through the CPSW Gigabit interface?
I have tried setting up this same scenario with PRUETH0 and PRUETH1 as the bridged interfaces and we are able to successfully pass VLAN tagged traffic between devices. This is why I believe there is an issue or limitation with the CPSW Gigabit interface.
The kernel that we are running is TI Linux tag ti2018.00