net/mlx5: prepare sub-policy for flow with meter
authorLi Zhang <lizh@nvidia.com>
Tue, 27 Apr 2021 10:43:53 +0000 (13:43 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 27 Apr 2021 11:20:35 +0000 (13:20 +0200)
commitfc6ce56bba05c2ee9b4b9cc4bd719c3440f2a346
tree52692772ca87784019e59f4e59522b89bbbf0df9
parent4443201863933b27274a2ffc0d648bebc90e6b9b
net/mlx5: prepare sub-policy for flow with meter

When a flow has a RSS action, the driver splits
each sub flow finally is configured with
a different HW TIR action.

Any RSS action configured in meter policy may cause
a split in the flow configuration.
To save performance, any TIR action will be configured
in different flow table, so policy can be split to
sub-policies per TIR in the flow creation time.

Create a function to prepare the policy and
its sub-policies for a configured flow with meter.

Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c