net/mlx5: DR, Fix invalid EQ vector number on CQ creation
authorAlex Vesker <valex@mellanox.com>
Mon, 4 Nov 2019 09:59:21 +0000 (11:59 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:05 +0000 (12:33 -0800)
commit829969956f97e880dd01086be47747226e48a3f0
tree9904c8617bd91c5d36a99f7cd1a8c3f54404c59c
parentb6a4ac24c14be1247b0fd896737a01b8fa121318
net/mlx5: DR, Fix invalid EQ vector number on CQ creation

When creating a CQ, the CPU id is used for the vector value.
This would fail in-case the CPU id was higher than the maximum
vector value.

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