common/mlx5: add glue function for domain sync
authorBing Zhao <bingz@nvidia.com>
Tue, 27 Oct 2020 14:46:53 +0000 (22:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:04 +0000 (23:35 +0100)
commit6e0cd74a56e4dc204ba44c3b4943192c74d6e6a7
treed66dab051392561c829a985f0f828014b4d6572f
parentcf7d1995b9ea9033bbe9fb0719b8278e3508db16
common/mlx5: add glue function for domain sync

In rdma-core, the "mlx5dv_dr_domain_sync" function was already
provided. It is used to flush the rule submission queue. The wrapper
function in the glue layer is added for using this.
It only supports DR flows right now the same as domain creating and
destroying functions.

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/linux/mlx5_glue.c
drivers/common/mlx5/linux/mlx5_glue.h
drivers/common/mlx5/mlx5_malloc.c