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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:48:37 +0000 (19:48 +0100)
commit0e990da9bd4435d3f99d6a5df9faa641ac40def9
tree931b67f15e3b6ba4e984ef2da34af71c81063679
parent8328cd6845bbb2076df1fcba945b64f066e041ad
RDMA/counter: Prevent QP counter manual binding in auto mode

commit 663912a6378a34fd4f43b8d873f0c6c6322d9d0e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/counters.c