net/dpaa2: use hash FLCTYPE only for LX2
authorNipun Gupta <nipun.gupta@nxp.com>
Mon, 15 Jan 2018 11:38:05 +0000 (17:08 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
commitffb3389ceff0f70a9ed4a34100d74cbe81042a60
treec993e0682aedc5a9e052b0f3b0b874002433d49d
parentc172f85ef2e5f3992ac32a2bbf6a9bc28bcc2261
net/dpaa2: use hash FLCTYPE only for LX2

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.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c