net/mlx5: validate connection tracking action
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:25 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:17 +0000 (14:30 +0200)
commit0a4291173989faa02a9a4250246ab6c9da4ff741
tree74725963c52b2448341527edd0ed7055c93df15f
parent8c0c5c816ad5a8dc9e3d052d65b06d5832cbb55d
net/mlx5: validate connection tracking action

The validation of a CT action contains two parts. The first is the
CT action configurations parameter. When creating a CT action
context, some members need to be verified.

The second is that when creating a flow, the DR action of CT should
be validated with other actions and items as well. Currently, only
the TCP protocol support connection tracking.

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