mbox series

[v3,0/2] generic copy rte flow action support

Message ID 20210113033854.11827-1-akozyrev@nvidia.com (mailing list archive)
Headers show
Series generic copy rte flow action support | expand


Alexander Kozyrev Jan. 13, 2021, 3:38 a.m. UTC
Implement a generic copy rte flow API as described in RFC:

This API allows copying a specified number of bits from a source
header field to a destination header field. Tag, mark or metadata
can also be used as a source/destination to allow saving/overwriting
an arbitrary header field with a user-specified value.

Outermost/innermost packet fields (and Tag array elements) are
accessible via the level parameter to facilitate the modification
of encapsulated packet header fields. The offset parameter provides
the flexibility to copy/set any part of a packet starting the
specified packet header field.

v1: https://patchwork.dpdk.org/patch/86173/
v2: https://patchwork.dpdk.org/cover/86369/
Added testpmd support.
Made dst_type and src_type only mandatory parameters.

Alexander Kozyrev (2):
  ethdev: introduce generic copy rte flow action
  app/testpmd: add support for generic copy rte flow action

 app/test-pmd/cmdline_flow.c            | 167 +++++++++++++++++++++++++
 doc/guides/prog_guide/rte_flow.rst     |  50 ++++++++
 doc/guides/rel_notes/release_21_02.rst |   5 +
 lib/librte_ethdev/rte_flow.c           |   1 +
 lib/librte_ethdev/rte_flow.h           |  59 +++++++++
 5 files changed, 282 insertions(+)