In the simple example project under cpsw_mgmt.c, the following code snippet exists. My question is if set in some loopback mode, an ALE entry is setup to forward packets to port 0 if matched on macAddress1. Similarly also to forward packets to port 1 if matched on the same macAddress1. Can you confirm that the packets incoming on port 0 are forwarded only to port 1 if they match the macAddress1? They cannot be forwarded to port 0 as that is a receiving port. Similarly if packets are incoming on port 1 match macAddress1 they are then forwarded only to port 0 and they cannot be forwarded to port 1?
if(cpswLpbkMode == CPSW_LOOPBACK_NONE)
Switch_update_addr(0, macAddress0, 0)
else
Switch_update_addr(0, macAddress1, 0);
Switch_update_addr(1, macAddress1, 0);
Switch_update_addr(2, macAddress2, 0);
Thanks, Aamir