[0/2] ethdev: add group set miss actions API

Message ID 20230920125250.804055-1-tshmilovich@nvidia.com (mailing list archive)
Headers
Series ethdev: add group set miss actions API |

Message

Tomer Shmilovich Sept. 20, 2023, 12:52 p.m. UTC
  Introduce new group set miss actions API:
rte_flow_group_set_miss_actions().

A group's miss actions are a set of actions to be performed
in case of a miss on a group, i.e. when a packet didn't hit any flow
rules in the group.

Currently, the expected behavior in this case is undefined.
In order to achieve such functionality, a user can add a flow rule
that matches on all traffic with the lowest priority in the group -
this is not explicit however, and can be overridden by another flow rule
with a lower priority.

This new API function allows a user to set a group's miss actions in an
explicit way.

RFC discussion: http://patches.dpdk.org/project/dpdk/patch/20230807133601.164018-1-tshmilovich@nvidia.com/

Tomer Shmilovich (2):
  ethdev: add group set miss actions API
  app/testpmd: add group set miss actions CLI commands

 .mailmap                               |   1 +
 app/test-pmd/cmdline_flow.c            | 112 +++++++++++++++++++++++++
 app/test-pmd/config.c                  |  27 ++++++
 app/test-pmd/testpmd.h                 |   2 +
 doc/guides/prog_guide/rte_flow.rst     |  30 +++++++
 doc/guides/rel_notes/release_23_11.rst |   5 ++
 lib/ethdev/rte_flow.c                  |  22 +++++
 lib/ethdev/rte_flow.h                  |  35 ++++++++
 lib/ethdev/rte_flow_driver.h           |   7 ++
 lib/ethdev/version.map                 |   3 +
 10 files changed, 244 insertions(+)
  

Comments

Ferruh Yigit Sept. 29, 2023, 11:02 a.m. UTC | #1
On 9/20/2023 1:52 PM, Tomer Shmilovich wrote:
> Introduce new group set miss actions API:
> rte_flow_group_set_miss_actions().
> 
> A group's miss actions are a set of actions to be performed
> in case of a miss on a group, i.e. when a packet didn't hit any flow
> rules in the group.
> 
> Currently, the expected behavior in this case is undefined.
> In order to achieve such functionality, a user can add a flow rule
> that matches on all traffic with the lowest priority in the group -
> this is not explicit however, and can be overridden by another flow rule
> with a lower priority.
> 
> This new API function allows a user to set a group's miss actions in an
> explicit way.
> 
> RFC discussion: http://patches.dpdk.org/project/dpdk/patch/20230807133601.164018-1-tshmilovich@nvidia.com/
> 
> Tomer Shmilovich (2):
>   ethdev: add group set miss actions API
>   app/testpmd: add group set miss actions CLI commands
> 

Series applied to dpdk-next-net/main, thanks.