net/ice: optimize protocol extraction by dynamic mbuf
authorHaiyue Wang <haiyue.wang@intel.com>
Fri, 8 Nov 2019 15:44:34 +0000 (23:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Nov 2019 13:23:02 +0000 (14:23 +0100)
commitefc1b2799f6674341322e2026698755d1dce842f
tree0e06f580ab356b78b8863f42ff477a0ac1b12ec0
parente484e40323327aa4c51f22d59a38bde40327743d
net/ice: optimize protocol extraction by dynamic mbuf

The original design is to use rte_mbuf::udata64 to save the metadata of
protocol extraction which has network protocol data fields and type, a
private API is used to decode this metadata.

Use the dynamic mbuf field and flags to register the needed fields in
mbuf, to avoid overwriting 'rte_mbuf::udata64', since the application
may use it. Now the protocol extraction metadate is saved into dynamic
mbuf field with 4B size, and its type and validity is indicated by the
related dynamic mbuf flags in 'rte_mbuf::ol_flags'.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
doc/guides/nics/ice.rst
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_rxtx.h
drivers/net/ice/rte_pmd_ice.h
drivers/net/ice/rte_pmd_ice_version.map