RDMA/counter: Prevent QP counter manual binding in auto mode
authorMark Zhang <markz@mellanox.com>
Mon, 16 Sep 2019 07:11:52 +0000 (10:11 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 1 Oct 2019 13:30:16 +0000 (10:30 -0300)
commit663912a6378a34fd4f43b8d873f0c6c6322d9d0e
treeaeb8ad7857d41adcbf4ae494384198616fd199e1
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
RDMA/counter: Prevent QP counter manual binding in auto mode

If auto mode is configured, manual counter allocation and QP bind is not
allowed.

Fixes: 1bd8e0a9d0fd ("RDMA/counter: Allow manual mode configuration support")
Link: https://lore.kernel.org/r/20190916071154.20383-3-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/counters.c