[dpdk-dev] [PATCH v9] net/ice: optimize protocol extraction by dynamic mbuf API
Ye Xiaolong
xiaolong.ye at intel.com
Fri Nov 8 03:35:45 CET 2019
On 11/07, Haiyue Wang wrote:
>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' if the application uses
>it. It only needs 4B size to save the protocol extraction data, and its
>type and validity is indicated by related bit in 'rte_mbuf::ol_flags'.
>
>Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
>---
>v9: - Rename the dynamic filed and flags variables to _offs, _mask, so it
> matches the design.
>
>v8: - Cleanup the doxgen, rename the dynamic filed and flags with ice prefix.
>
>v7: - Change the log level from ERR to DEBUG for a successful registration,
> ERR is used to develop firstly.
>
>v6: - Don't need to register all flags when if one dev_args is set, register
> it as required.
>
>v5: - Remove the '_OL/_ol' in dynamic mbuf flag to make the variable clean.
>
>v4: - Include the 'rte_pmd_ice.h' header in ICE source as needed, reduce
> its compile scope.
>
>v3: - Use the conventions name "rte_net_<pmd>_dynfield_<name>" since it
> is defined in a in PMD.
> - Add helpers API for easiy access.
>
>v2: - disable the protocol extraction if failed to register some ol_flags
> - rewrite the commit message
>
> doc/api/doxy-api-index.md | 1 +
> doc/api/doxy-api.conf.in | 1 +
> doc/guides/nics/ice.rst | 14 +-
> drivers/net/ice/ice_ethdev.c | 84 ++++++-
> drivers/net/ice/ice_ethdev.h | 9 +
> drivers/net/ice/ice_rxtx.c | 88 ++++---
> drivers/net/ice/ice_rxtx.h | 1 -
> drivers/net/ice/rte_pmd_ice.h | 313 +++++++++++++++---------
> drivers/net/ice/rte_pmd_ice_version.map | 12 +
> 9 files changed, 370 insertions(+), 153 deletions(-)
>
Reviewed-by: Xiaolong Ye <xiaolong.ye at intel.com>
Applied to dpdk-next-net-intel. Thanks.
More information about the dev
mailing list