net/mlx5: initialize connection tracking management
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:15 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:11 +0000 (14:30 +0200)
commitee9e5fad03ebe04b434eb0c413b131252e154e8f
tree3bb938f213f2602330d1024bc938d2d8cd9904ab
parent8ebbc01f4275af5555a0a81702768596a4ca8089
net/mlx5: initialize connection tracking management

The definitions of ASO connection tracking objects management
structures are added.

Considering performance, the bulk allocation of ASO CT objects
should be used. The maximal value per bulk and the granularity could
be fetched from HCA capabilities 2. Right now, a fixed number of 64
is used for each bulk for a better management purpose.

The ASO QP for CT is initialized, the SQ will be used for both
modify and query command.

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