Hello!
when i use the pa_emacexample demo, I change lookback mode to the external mode,Code is as follows:
Int32 Init_Cpsw (Void)
{
Uint8 myMACAddress [6] = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15};
uint32_t i; uint8_t backplaneMac[6] = {0x1, 0x1, 0x1, 0x1, 0x1, 0x1}; /* Mask for creating mac address by flipping LSB */
uint8_t cppiMac [6] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05}; /* MAC address for (CPPI) Port 0 - we made it up*/
/* we need to create a mac address for the Backplane Ethernet port * using the Ethernet MAC Adress */
for (i=0; i < 6; i++)
{
backplaneMac[i] |= myMACAddress[i];
}
Init_MAC (0, backplaneMac, RX_MTU);
/* set the silver port to the stacks ethernet address */
Init_MAC (1, myMACAddress, RX_MTU);
/* Setup the Phys by initializing the MDIO - not needed for Simulator*/
Init_MDIO ();
/* Setup the Ethernet switch finally. */
Init_Switch (RX_MTU);
/* This is a little confusing but different APIs use different numbering */
Switch_update_addr(0, cppiMac, 0);
Switch_update_addr(1, backplaneMac, 0);
Switch_update_addr(2, myMACAddress, 0);
/* CPSW subsystem setup done. Return success */
return 0;
}
When PC sends data to the dsp,the program can be able to correctly receive data.
But the bandwidth of receiving can only achieve to 12MB/s If the PC sends data more faster,the DSP will begin dropping packets.
My interrupt threshold is set to 1, the other has not changed.When using the NDK,speed can reach 80MB / S around.
Normally,directly use the MAC,speed is able to achieve line rate.
whats the reason causes the performance reduced so much?