net/mlx5: DR, On creation set CQ's arm_db member to right value
authorErez Shitrit <erezsh@mellanox.com>
Wed, 25 Mar 2020 15:19:43 +0000 (17:19 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 30 Apr 2020 16:20:32 +0000 (09:20 -0700)
commit8075411d93b6efe143d9f606f6531077795b7fbf
treee2f7cc35ebaa0cd2d99e0767e932ab738b173f22
parentf8d1eddaf94abdc459ccfb881aa7233cb9f7f39a
net/mlx5: DR, On creation set CQ's arm_db member to right value

In polling mode, set arm_db member to a value that will avoid CQ
event recovery by the HW.
Otherwise we might get event without completion function.
In addition,empty completion function to was added to protect from
unexpected events.

Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue RDMA operations")
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c