]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Unify CQ create flags check
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Dec 2015 15:01:30 +0000 (17:01 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 21 Jan 2016 17:05:37 +0000 (12:05 -0500)
commit0578c9dcd6f39db0bb4979db1528b769147053fb
treeb269d5c759367823bb58685cac820f590907f22f
parentf64c5c0a7d98f82f7c7e0790668b73ab02b33066
IB/mlx5: Unify CQ create flags check

The create_cq() can receive creation flags which were used
differently by two commits which added create_cq extended
command and cross-channel. The merged code caused to not
accept any flags at all.

This patch unifies the check into one function and one return
error code.

Fixes: ad70ce744ebc ("IB/mlx5: Add create_cq extended command")
Fixes: 433d8ca0e091 ("IB/mlx5: Add driver cross-channel support")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/mlx5_ib.h