lx2160 dpdk 17.11.2 dpaa2 rte_mbuf hash always zero

cancel
Showing results for 
Search instead for 
Did you mean: 

lx2160 dpdk 17.11.2 dpaa2 rte_mbuf hash always zero

363 Views
chris_nardone
Contributor I

I have found while testing with dpdk 17.11.2 on the lx2160 that the hash field of the rte_mbuf is always zero.

It appears from the dpdk source that the value is not set in the dpaa2 driver but is in the dpaa driver.

The files I am referring to are
drivers/net/dpaa2/dpaa2_rxtx.c
and
drivers/net/dpaa/dpaa_rxtx.c
There is also this piece of code that I could use some clarification on in
drivers/net/dpaa2/dpaa2_ethdev.c

/* Enabling hash results in FD requires setting DPNI_FLCTYPE_HASH in
* dpni_set_offload API. Setting this FLCTYPE for DPNI sets the FD[SC]
* to 0 for LS2 in the hardware thus disabling data/annotation
* stashing. For LX2 this is fixed in hardware and thus hash result and
* parse results can be received in FD using this option.
*/
if (dpaa2_svr_family == SVR_LX2160A) {
ret = dpni_set_offload(dpni, CMD_PRI_LOW, priv->token,
DPNI_FLCTYPE_HASH, true);
if (ret) {
DPAA2_PMD_ERR("Error setting FLCTYPE: Err = %d", ret);
return ret;
}
}

Labels (1)
0 Kudos
1 Reply

186 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Christopher Nardone,

Please use DPDK provided in lx2160a-early-access-bsp0.4, which has already been tested by the testing team.

git tree:

git://source.codeaurora.org/external/qoriq/qoriq-components/dpdk

commit id:

0c0332ae0016ca6742961f1f4ac6e2f4fdbe215a

If you want to use the Yocto SDK environment, please refer to readme - qoriq-components/yocto-sdk - Repo manifest for QorIQ Yocto SDK .


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos