net/mlx5: validate connection tracking item
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:26 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:17 +0000 (14:30 +0200)
commitaca19061e4b961c1d31dedb690a8171c6e150dad
tree86a1c037db5ffdaf8da1fd43274591dc795ed778
parent0a4291173989faa02a9a4250246ab6c9da4ff741
net/mlx5: validate connection tracking item

The item of ASO connection tracking will be translated into the
register value when matching. The validation of this item has no
dependency on other layers, since the flow including this item
should be jumped from another group. All the layers checking was
already done in the previous groups. Only the state bits conflict
should be checked.

It is assumed that the flow with CT item will always work on the
TCP traffic.

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c