This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PA_EMAC example , Packets are getting dropped at Packet accelerator.

Hello TI,

we are using PA_EMAC example from below path

C:\ti\pdk_k2hk_4_0_1\packages\MyExampleProjects\PA_emacExample_K2KArmBiosExampleProject.

we are work on K2k EVEM's.

we don't have issues sending the packet out of EVM, It is successfully received at the other END(which is a PC).

Now when we try to send the same packet back from PC to EVM , the packet is getting dropped at PA as per PA statistics.

PA Stats After Packet Transmission BEGIN ********* ...

--- PA STATS ---

C1 number of packets: 201

C1 number IPv4 packets: 100

C1 number IPv6 packets: 0

C1 number custom packets: 0

C1 number SRIO packets: 0

C1 number llc/snap fail: 0

C1 number table matched: 100

C1 number failed table matched: 100

C1 number Ingress IP frags: 0

C1 number IP depth overflow: 0

C1 number vlan depth overflow: 0

C1 number gre depth overflow: 0

C1 number mpls packets: 0

C1 number of parse fail: 0

C1 number invalid IPv6 opts: 0

C1 number of Egress IP frags: 0

C1 number of silent discard: 100

 

actually our requirement is to receive a RAW packet at EVM side from PC.

we want to know why PA is discarding the packets , what are the changes needed to make PA forward the RAW packet to receive Queue??

Basically we want to disable the checks at PA to forward the packet to receive queue directly, kindly update us the changes required

 

Regards

Manjunath

  • Hi Manjunath,

    You mean to say with "PA_emacExample_K2KArmBiosExampleProject" example, you are able to transmit packets to PC and not able to receive packets from PC.

    Can you please provide complete log of the example?
  • Hi Manjunath jayram,

    From our side, we were able to run the "PA_emacExample_K2KArmBiosExampleProject", example on K2H EVM and below are the output logs.

    The following are the steps followed to run this example.

    1. Set the K2H EVM in no-boot emulation mode.
    2. Launch *.cxml of k2H EVM, connect the ARMcore 0.
    3. Load the program, "PA_emacExample_K2KArmBiosExampleProject"
    4. Run.
    5. Will observe the ouput messages like below on the console.

    Output logs:-

    [arm_A15_0] **************************************************
    ******* Ethernet Single Core Example Start *******
    **************************************************
    QMSS successfully initialized
    CPPI successfully initialized
    PASS successfully initialized
    SGMII Serdes Common Init Complete
    SGMII Serdes Lanes Init Complete
    Ethernet subsystem successfully initialized
    Tx setup successfully done
    Rx setup successfully done
    PASS setup successfully done
    Following is the ALE table before transmits.
    Frames Received 0
    Rx Frame Fragments Received 0
    Total Received Bytes in Good Frames 0
    Good Frames Sent 0
    Good Broadcast Frames Sent 0
    Good Multicast Frames Sent 0
    PauseTx Frames Sent 0
    Frames Where Transmission was Deferred 0
    Total Frames Sent With Collision 0
    Frames Sent with Exactly One Collision 0
    Frames Sent with Multiple Colisions 0
    Tx Frames Lost Due to Excessive Collisions0
    Tx Frames Lost Due to a Late Collision 0
    Tx Frames Lost Due to Carrier Sense Loss 0
    Total Transmitted Bytes in Good Frames 0
    Total Tx&Rx with Octet Size of 64 0
    Total Tx&Rx with Octet Size of 65 to 127 0
    Total Tx&Rx with Octet Size of 128 to 255 0
    Total Tx&Rx with Octet Size of 256 to 511 0
    Total Tx&Rx with Octet Size of 512 to 1023 0
    Total Tx&Rx with Octet Size of >=1024 0
    Sum of all Octets Tx or Rx on the Network 0
    ********************************************
    Frames Received 0
    Rx Frame Fragments Received 0
    Total Received Bytes in Good Frames 0
    Good Frames Sent 0
    Good Broadcast Frames Sent 0
    Good Multicast Frames Sent 0
    PauseTx Frames Sent 0
    Frames Where Transmission was Deferred 0
    Total Frames Sent With Collision 0
    Frames Sent with Exactly One Collision 0
    Frames Sent with Multiple Colisions 0
    Tx Frames Lost Due to Excessive Collisions0
    Tx Frames Lost Due to a Late Collision 0
    Tx Frames Lost Due to Carrier Sense Loss 0
    Total Transmitted Bytes in Good Frames 0
    Total Tx&Rx with Octet Size of 64 0
    Total Tx&Rx with Octet Size of 65 to 127 0
    Total Tx&Rx with Octet Size of 128 to 255 0
    Total Tx&Rx with Octet Size of 256 to 511 0
    Total Tx&Rx with Octet Size of 512 to 1023 0
    Total Tx&Rx with Octet Size of >=1024 0
    Sum of all Octets Tx or Rx on the Network 0
    ********************************************
    Packet Transmission Start ...
    Following is the ALE table after transmits.
    Packet Transmission Done.
    Wait for all packets to be Received from EMAC port 0...
    Packets Sent = 10
    Packets Received = 10
    Following is the ALE table after transmits.
    Packet Transmission Done.
    Wait for all packets to be Received from EMAC port 1...
    Packets Sent = 10
    Packets Received = 10
    Following is the ALE table after transmits.
    Packet Transmission Done.
    Wait for all packets to be Received from EMAC port 2...
    Packets Sent = 10
    Packets Received = 10
    Following is the ALE table after transmits.
    Packet Transmission Done.
    Wait for all packets to be Received from EMAC port 3...
    Packets Sent = 10
    Packets Received = 10

    Example Done!
    PA Stats After Packet Transmission BEGIN ********* ...
    --- PA STATS ---
    C1 number of packets: 82
    C1 number IPv4 packets: 40
    C1 number IPv6 packets: 0
    C1 number custom packets: 0
    C1 number SRIO packets: 0
    C1 number llc/snap fail: 0
    C1 number table matched: 80
    C1 number failed table matched: 0
    C1 number Ingress IP frags: 0
    C1 number IP depth overflow: 0
    C1 number vlan depth overflow: 0
    C1 number gre depth overflow: 0
    C1 number mpls packets: 0
    C1 number of parse fail: 0
    C1 number invalid IPv6 opts: 0
    C1 number of Egress IP frags: 0
    C1 number of silent discard: 0
    C1 number of invalid control: 0
    C1 number of invalid states: 0
    C1 number of system fails: 0

    C2 number of packets: 41
    C2 number of UDP packets: 40
    C2 number of TCP packets: 0
    C2 number of custom packets: 0
    C2 number of silent discard: 0
    C2 number of invalid control: 0

    Modify number of command file: 0

    ived 0
    Rx Frame Fragments Received 0
    Total Received Bytes in Good Frames 5040
    Good Frames Sent 20
    Good Broadcast Frames Sent 0
    Good Multicast Frames Sent 0
    PauseTx Frames Sent 0
    Frames Where Transmission was Deferred 0
    Total Frames Sent With Collision 0
    Frames Sent with Exactly One Collision 0
    Frames Sent with Multiple Colisions 0
    Tx Frames Lost Due to Excessive Collisions0
    Tx Frames Lost Due to a Late Collision 0
    Tx Frames Lost Due to Carrier Sense Loss 0
    Total Transmitted Bytes in Good Frames 2520
    Total Tx&Rx with Octet Size of 64 0
    Total Tx&Rx with Octet Size of 65 to 127 60
    Total Tx&Rx with Octet Size of 128 to 255 0
    Total Tx&Rx with Octet Size of 256 to 511 0
    Total Tx&Rx with Octet Size of 512 to 1023 0
    Total Tx&Rx with Octet Size of >=1024 0
    Sum of all Octets Tx or Rx on the Network 7560
    ********************************************
    ived 0
    Rx Frame Fragments Received 0
    Total Received Bytes in Good Frames 2520
    Good Frames Sent 20
    Good Broadcast Frames Sent 0
    Good Multicast Frames Sent 0
    PauseTx Frames Sent 0
    Frames Where Transmission was Deferred 0
    Total Frames Sent With Collision 0
    Frames Sent with Exactly One Collision 0
    Frames Sent with Multiple Colisions 0
    Tx Frames Lost Due to Excessive Collisions0
    Tx Frames Lost Due to a Late Collision 0
    Tx Frames Lost Due to Carrier Sense Loss 0
    Total Transmitted Bytes in Good Frames 2520
    Total Tx&Rx with Octet Size of 64 0
    Total Tx&Rx with Octet Size of 65 to 127 40
    Total Tx&Rx with Octet Size of 128 to 255 0
    Total Tx&Rx with Octet Size of 256 to 511 0
    Total Tx&Rx with Octet Size of 512 to 1023 0
    Total Tx&Rx with Octet Size of >=1024 0
    Sum of all Octets Tx or Rx on the Network 5040
    ********************************************
    All tests have passed!
    **************************************************
    ******** Ethernet Single Core Example End ********
    **************************************************
    Core 0 : CPPI CPDMA closed successfully
    Core 0 : CPPI exit successful
    Instance name: RM_Server
    Handle: 0x80097df8
    Type: Server

    Resource Status:

    All resources freed successfully
  • Hello Shankari,

    Thank you for your reply.

    we are also able to send and receive the packets now.

    But when we send more than 10 packets to EVM from PC , ISR Is triggered only for 10 packets.

    it is something to do with programming the accumulator
    can you try receiving more than 10 packets at EVM side?

    how to program the accumulator to receive all packets??(more than 10 packets)

    Regards
    Manjunath
  • Hello Shankari,

    please ignore my previous Query, if we add some delay in sending we are able to receive more than 10 packets.

    I have one more doubt , if I change packet content , PA will drop it.
    our requirement is , whatever packet received by PA has to be forwarded to receive queue.
    we want to disable all checks at PA L2/L3/L4 Engine, how to do that?

    Regards
    Manjunath
  • Manjunath,

    Manjunath said:
    please ignore my previous Query, if we add some delay in sending we are able to receive more than 10 packets.


    Glad that it worked for you after adding delay.

    Manjunath said:
    I have one more doubt , if I change packet content , PA will drop it.
    our requirement is , whatever packet received by PA has to be forwarded to receive queue.
    we want to disable all checks at PA L2/L3/L4 Engine, how to do that?


    We have forwarded this question to an expert. Thanks for your patience till then.