HI,
Below this Thread We are able to send packets from Ethernet, now need to capture packets from Ethernet & need to compare PA lookup table (LUT) & accepting the packet rule to receive packets.
https://e2e.ti.com/support/processors/f/791/p/947924/3527769#3527769
Here I changes in PA lld code,
Add_MACAddress
paEthInfo_t ethInfo = {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Src mac = dont care */ ---> Here we changed PC
{ 0xe0, 0xd5, 0x5e, 0x37, 0xbc, 0xec }, /* Dest mac */ ---->Here we changed EVM
0, /* vlan = dont care */
0x0800, /* ether type = IPv4 */
0, /* MPLS tag = dont care */
1 /* Input EMAC port = dont care */ ----> Here we changed 0 -> 1 Why reason 0-> Host port 0 1-> Ethernet port1
};
Add_IP address
Source IP -> PC IP address
Dest IP -> EVM IP address
in cppi_qmss_mgmt.c file
commented SendPacket() & ReceivePacket put on while loop for continously receiving packet from ethernet.
Below i added inputs for above asking questions:
From Keystone Architecture Packet Accelerator (PA) User Guide,
"The PDSP firmware classifies data packets by submitting lookup requests to the LUT1 module, and the LUT1 returns the results of the lookup based on the contents of the entries stored in its lookup table. Based on the results from the LUT1 module, the PDSP will direct the packet to the next destination, or drop the packet if it did not match any of the LUT1 entries."
Response from my side checked in board
1. Here I sent packets from ethernet,PA LLD contains MAC, IP header information from pktMtachBuff & it matches pa_addMAC, pa_addIP functions containing MAC, IP. It process the packets on wire related above asking questions.
Results
Sending (pktmatchbuff) packets on wire based on added MAC, IP on (pa_addMAc, pa_addIP)APIs.
2. Now I need to receive packets from ethernet based on using packetEth UDP packet generator to send packets on PC to EVM ethernet wire, it should matches pa_addMAC, pa_addIP & should process the receive packets from packet accelerator.
Results:
Sending packets from PC to EVM - > Not capturing packets on EVM ethernet.
Regards,
SanthanaKumarS