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.

port-specific ethernet frame send and receive with cpsw as single EMAC

Other Parts Discussed in Thread: AM3352

Is there a way to send out an ethernet frame through the host interface to exactly one of the two external ports of the cpsw switch when it is not in DUAL-EMAC mode?

Moreover, is it possible to tell from which of the two external cpsw ports an incoming frame was received? 

One idea was to run the CPSW in VLAN mode and define the host interface as a VLAN trunk. The packets to the external ports get an extra VLAN tag from software which makes the switch route them to the specific external port and strip off the VLAN tag.

On the other side, packets received by an external port get an extra VLAN tag attached by the switch before being forwarded to the host interface.

Is this possible? How must the CPSW be configured to make this work? Or is there a better way to acomplish the above mentioned goals?