Skip to content

ethdev: update modify field flow action

Viacheslav Ovsiienko dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 3 repliesIn review
  2. v55 patches 1 replySuperseded
  3. v45 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches3 repliesSuperseded
v25 patches6 repliesSuperseded
v13 patches1 replySuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ethdev: update modify field flow actiondoc/guides/prog_guide/rte_flow.rst doc/guides/rel_notes/deprecation.rst doc/guides/rel_notes/release_21_11.rst +1 more+42 -92 replies
2/5ethdev: fix missed experimental tag for modify field actionlib/ethdev/rte_flow.h+3 -00 replies
3/5app/testpmd: update modify field flow action supportapp/test-pmd/cmdline_flow.c+38 -170 replies
4/5app/testpmd: fix hex string parser in flow commandsapp/test-pmd/cmdline_flow.c+4 -10 replies
5/5net/mlx5: update modify field actiondrivers/net/mlx5/mlx5_flow_dv.c+44 -840 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchOri KamAndrew Rybchenko
1/5A-b A-b
2/5A-b A-b
3/5A-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [dpdk-dev] [PATCH v6 0/5] ethdev: update modify field flow action

The generic modify field flow action introduced in [1] has some issues related to the immediate source operand:

- immediate source can be presented either as an unsigned 64-bit integer or pointer to data pattern in memory. There was no explicit pointer field defined in the union

- the byte ordering for 64-bit integer was not specified. Many fields have lesser lengths and byte ordering is crucial.

- how the bit offset is applied to the immediate source field was not defined and documented

- 64-bit integer size is not enough to provide MAC and IPv6 addresses

In order to cover the issues and exclude any ambiguities the following is done:

- introduce the explicit pointer field
in rte_flow_action_modify_data structure

- replace the 64-bit unsigned integer with 16-byte array

- update the modify field flow action documentation

Appropriate commit message has been removed.

[1] commit 73b68f4c54a0 ("ethdev: introduce generic modify flow action")
[2] RFC: http://patches.dpdk.org/project/dpdk/patch/[email protected]/
[3] Deprecation notice: http://patches.dpdk.org/project/dpdk/patch/[email protected]/
[4] v1 - http://patches.dpdk.org/project/dpdk/cover/[email protected]/
[5] v2 - http://patches.dpdk.org/project/dpdk/patch/[email protected]/
[6] v3 - http://patches.dpdk.org/project/dpdk/cover/[email protected]/
[7] v4 - http://patches.dpdk.org/project/dpdk/cover/[email protected]/
[8] v5 - http://patches.dpdk.org/project/dpdk/patch/[email protected]/

v2: - comments addressed
- documentation updated
- typos fixed
- mlx5 PMD updated

v3: - comments addressed
- documentation updated
- typos fixed

v4: - removed errorneously added Ack by Ori K. for mlx5 patch
- mlx5 patch updated - bug fixes and cleanup

v5: - fix compilation issue with unused variable in mlx5

v6: - fix compilation issue with unused variable in mlx5

Viacheslav Ovsiienko (5):
ethdev: update modify field flow action
ethdev: fix missed experimental tag for modify field action app/testpmd: update modify field flow action support app/testpmd: fix hex string parser in flow commands net/mlx5: update modify field action

 app/test-pmd/cmdline_flow.c            |  60 ++++++++----
 doc/guides/prog_guide/rte_flow.rst     |  24 ++++-
 doc/guides/rel_notes/deprecation.rst   |   4 -
 doc/guides/rel_notes/release_21_11.rst |   7 ++
 drivers/net/mlx5/mlx5_flow_dv.c        | 128 +++++++++----------------
 lib/ethdev/rte_flow.h                  |  19 +++-
 6 files changed, 131 insertions(+), 111 deletions(-)
Signature · 1 line
2.18.1