RDMA/counter: Prevent QP counter binding if counters unsupported
In case of rdma_counter_init() fails, counter allocation and QP bind should not be allowed. Fixes: 413d3347 ("RDMA/counter: Add set/clear per-port auto mode support") Fixes: 1bd8e0a9 ("RDMA/counter: Allow manual mode configuration support") Signed-off-by: Mark Zhang <markz@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Link: https://lore.kernel.org/r/20190807101819.7581-1-leon@kernel.orgSigned-off-by: Doug Ledford <dledford@redhat.com>
Showing
Please register or sign in to comment