Tool/software:
Question setting up the ALE table and configuration of the Ethernet Subsystem of the AM335x Sitara Processor
This is a section from the data sheet describing how to set up dual mac mode with seperation (at the switch) between the host/port1, host/port2 networks. This works.
14.3.2.10.2 Dual Mac Mode
When operating in dual mac mode the intention is to transfer packets between ports 0 and 1 and ports 0
and 2, but not between ports 1 and 2. Each CPGMAC_SL appears as a single MAC with no bridging
between MAC’s. Each CPGMAC_SL has at least one unique (not the same) mac address.
Dual mac mode is configured as described below:
aware mode.The CPSW_3G vlan aware bit (vlan_aware in CPSW_Control) determines how packets
VLAN’s are processed on CPGMAC_SL egress and does not affect how the ALE processes packets or
the packet destination. The CPSW_3G vlan aware bit may be set or not as required (must be set if
VLAN’s are to exit the switch).
Add a VLAN Table Entry with ports 0 and 1 as members (clear the flood masks).
Add a VLAN/Unicast Address Table Entry with the Port1/0 VLAN and a port number of 0. Packets
received on port 1 with this unicast address will be sent only to port 0 (egress). If multiple mac addresses
are desired for this port then multiple entries of this type may be configured.
Add a VLAN Table Entry with ports 0 and 2 as members (clear the flood masks).
Add a VLAN/Unicast Address Table Entry with the Port2/0 VLAN and a port number of 0. Packets
received on port 2 with this unicast address will be sent only to port 0 (egress). If multiple mac addresses
are desired for this port then multiple entries of this type may be configured.
then VLAN with addresses can be added for both destination ports.
intention of this mode is to allow packets from both ethernet ports to be written into the FIFO without
one port starving the other port.
channel while packets received on port 2 egress on a different CPDMA RX channel.
We are looking for a similar description for a dual mac setup where both ports are on the same subnet and all ports see all traffic. We need this because we’d like to use a hub function rather than a switch function allowing all packets to be presented to the HOST, MAC1 and MAC2. The design daisy chains multiple AM335X processors together with other boards.
Hello Eric Mac,
Thank you for the query.
I need to check with the experts if this request could be supported.
Please expect delay in response given the holiday week.
Regards,
Sreenivasa
Hi,
Is the OS in use Linux?
If you are trying to achieve a daisy chain topology putting the CPSW into switch mode will enable that type of traffic. This would appear as a single MAC to the AM335x but traffic would flow between the two external ports that is not intended for the local processor. In dual mac mode Linux does not allow the two ports to be on the same subnet.
Best Regards,
Schuyler