common/mlx5: check connection tracking offload capability
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:13 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:10 +0000 (14:30 +0200)
commit0c6285b727012b84299e4370abe8ec68d7d5c843
tree415a154dbeaff227a6034d25897b09d83ee98048
parentdc4e9e820f2d0d2d32b0a34cdec3b27515c8f002
common/mlx5: check connection tracking offload capability

During startup, the ASO connection tracking offload capability could
be queried via HCA_CAP_QUERY command. If the HW doesn't support ASO
CT, the value would be 0 by default. The following initialization
should be skipped and the creation of the CT object should return
a failure directly.

The following CT creation should also check this capability. With
the old driver, the pre-processing macro should be used in order to
make the compiling pass.

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_21_05.rst
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/mlx5_prm.h