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?