> -----Original Message-----
> From: Suanming Mou <[email protected]>
> Sent: Thursday, October 20, 2022 18:42
> To: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>
> Cc: [email protected]; Raslan Darawsheh <[email protected]>; Ori Kam
> <[email protected]>; Dariusz Sosnowski <[email protected]>
> Subject: [PATCH v6 09/18] net/mlx5: support DR action template API
> 
> From: Dariusz Sosnowski <[email protected]>
> 
> 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 <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>

Reply via email to