common/mlx5: add glue for sample action
authorJiawei Wang <jiaweiw@nvidia.com>
Tue, 13 Oct 2020 14:11:43 +0000 (17:11 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:18 +0000 (19:48 +0200)
commita3def8547929b00fbead85c08862ebe60faf70f5
tree9577d648d05764889f43cf705df94598666b6f9d
parent9bb607af360e4572e0b64bc2a3edc8c8c6e9e14b
common/mlx5: add glue for sample action

The new DR sample action is supported since OFED version
5.1.2 or rdma-core version v32.

MLX5 PMD adds the rdma-core command in glue to create this action.

Sample action is used for creating the sample object to implement
the sampling/mirroring function.

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/linux/mlx5_glue.c
drivers/common/mlx5/linux/mlx5_glue.h
drivers/common/mlx5/mlx5_prm.h