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.

CCS/66AK2E05: How to configure the paRouteInfo_t Struct in PA LLD Data Structures

Part Number: 66AK2E05

Tool/software: Code Composer Studio

Nowadays,I‘m developing the 66AK2E05 to Implement a function that is useing the DSP to receive packets from enthenet port,when I program the PA moudle,I have to program the  paRouteInfo_t Struct to configure the routing information that is used to determine the next destination for the packet,I want to configure the destination to host,so I should configure the flowId, queue, mRoutehandle, swInfo0, cmd parameters in this Struct,but I don't know how to configure these parameters,I read the "KeyStone Architecture II Packet Accelerator 2 (PA2) for K2E and K2L Devices User's Guide" and "paRouteInfo_t Struct Reference (pdk_keystone2_3_01_01_04/packages/ti/drv/pa/docs/doxygen/html/structpa_route_info__t.html)",but still don't konw,could you please tell me how to configure it or which regerence I should read,thank you!

that's the Struct:

typedef struct {

int dest;                                    /**< Packet destination as defined at @ref pktDest */
uint8_t flowId;                         /**< For host, SA or SRIO destinations, specifies CPPI flow which defines free queues are used for receiving packets */
uint16_t queue;                     /**< For host, SA or SRIO destinations, specifies the destination queue */
int mRouteIndex;                  /**< For host, Multi-queue routing index (0 to (@ref pa_MAX_MULTI_ROUTE_SETS - 1))
                                                        or @ref pa_NO_MULTI_ROUTE if multi routing not used */
uint32_t swInfo0;                /**< Placed in SwInfo0 for packets to host or SA; Placed in the PS Info for packets to SRIO */
uint32_t swInfo1;                /**< Placed in SwInfo1 for packets to the SA; Placed in the PS Info for packets to SRIO */
int customType;                  /**< For CONTINUE_PARSE_LUT1/LUT2 only, specifies the custom type as defined at @ref customType */
uint8_t customIndex;         /**< For CONTINUE_PARSE_LUT1/LUT2 only, specifies the custom classification entry index */
uint8_t pktType_emacCtrl;            /**< For destination SRIO, specify the 5-bit packet type toward SRIO
                                                          For destination HOST, EMAC, specify the EMAC control @ref emcOutputCtrlBits to the network */
paCmdInfo_t *pCmd;                      /**< Pointer to the Command info to be executed prior to the packet forwarding.
                                                                     NULL: no commads
                                                             @note only the following commands are supported within paRouteInfo_t
                                                                  - pa_CMD_PATCH_DATA (up to two bytes only) (LUT2 only)
                                                                  - pa_CMD_CMDSET
                                                                  - pa_CMD_USR_STATS
                                                                  - pa_CMD_CMDSET_AND_USR_STATS
                                                                */
} paRouteInfo_t;

and that is paRouteInfo_t Struct Reference:

Regards,

Zac