net/dpaa2: optimize Rx path packet parsing
authorNipun Gupta <nipun.gupta@nxp.com>
Fri, 8 Dec 2017 05:21:25 +0000 (10:51 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit7ec5e530f9fde7dea7c0c8d99c36f9986e6b6369
treea35778b66001e8cb441804f9689ffdf1c244776c
parenta5852a94ba1e056dffbbf623bbda5f94171971c4
net/dpaa2: optimize Rx path packet parsing

Parsing the annotation has multiple if checks in the data path.
These are reduced for common cases like IPv4/IPv6 and UDP/TCP
packets to enhance performance of these generic cases.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h
drivers/net/dpaa2/dpaa2_rxtx.c