Hi to all
I try to send/receive packet between PC and C6678 EVM using Packet Accelerator (I modify use Pa_emacExample PDK 1_1_2_6)
Change loopback mode to none:
Int cpswSimTest = 0;
Int cpswLpbkMode = CPSW_LOOPBACK_NONE;
Change Dest MAC address to my PC MAC and change src,dest IP in pktMatch[]
Packet receive on PC correctly (I use wireshark)
for receive packet from PC to EVM I do this steps
I bypass ALE to transfer all packet from port 2(J45) to port 0
//if(cpswLpbkMode != CPSW_LOOPBACK_NONE)
CSL_CPSW_3GF_enableAleBypass();
I see 0x2090b00 and 0x2090c00 range in memory browser after bypass ALE packet transmit to port 0
my packet dest mac is 10:11:12:13:14:15 (I use packet builder to to create packet on PC)
I comment this line in pa_mgmt.c because my packet dest,src mac set correct
/* Use Source MAC as destination MAC if non-loopback
if(cpswLpbkMode == CPSW_LOOPBACK_NONE)
memcpy(ethInfo.dst, srcMac, sizeof(srcMac));
*/
In this step I want to route all packet directly to Host in result I change AddMACAddress()
routeInfo = { pa_DEST_HOST, /* Continue parsing
0, /* Flow Id = dont care */
0, /* queue = dont care */
-1, /* multi route = dont care */
0xaaaaaaaa,
nFailInfo = { pa_DEST_HOST, /*EA: Toss the packet */
0, /* Flow Id = dont care */
0, /* queue = dont care */
-1, /* mutli route = dont care */
0xaaaaaaaa, /* multi route = dont care */
But i can’t receive packet in EVM from PC :
Port = 0, MAC address = 00:01:02:03:04:05, unicast_type = 3
Port = 2, MAC address = d8:5d:4c:81:f3:ac, unicast_type = 3
Port = 2, MAC address = 00:15:65:12:06:19, unicast_type = 3
Received 0 packets so far...
Received 0 packets so far...
Received 0 packets so far...
And interrupt not trigged
Packet accelerator is powerful tool for using network and i like to learn about it anybody can help me that what's wrong?
thanks
Ebi