[PATCH v6 09/18] net/mlx5: support DR action template API
Slava Ovsiienko
viacheslavo at nvidia.com
Mon Oct 24 11:45:49 CEST 2022
> -----Original Message-----
> From: Suanming Mou <suanmingm at nvidia.com>
> Sent: Thursday, October 20, 2022 18:42
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Ori Kam
> <orika at nvidia.com>; Dariusz Sosnowski <dsosnowski at nvidia.com>
> Subject: [PATCH v6 09/18] net/mlx5: support DR action template API
>
> From: Dariusz Sosnowski <dsosnowski at nvidia.com>
>
> This patch adapts mlx5 PMD to changes in mlx5dr API regarding action
> templates. It changes the following:
>
> 1. Actions template creation:
>
> - Flow actions types are translated to mlx5dr action types in order
> to create mlx5dr_action_template object.
> - An offset is assigned to each flow action. This offset is used to
> predetermine action's location in rule_acts array passed on rule
> creation.
>
> 2. Template table creation:
>
> - Fixed actions are created and put in rule_acts cache using
> predetermined offsets
> - mlx5dr matcher is parametrized by action templates bound to
> template table.
> - mlx5dr matcher is configured to optimize rule creation based on
> passed rule indices.
>
> 3. Flow rule creation:
>
> - mlx5dr rule is parametrized by action template on which these
> rule's actions are based.
> - Rule index hint is provided to mlx5dr.
>
> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
More information about the dev
mailing list