Skip to content
Commit d97de888 authored by Mark Zhang's avatar Mark Zhang Committed by Doug Ledford
Browse files

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: default avatarMark Zhang <markz@mellanox.com>
Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190807101819.7581-1-leon@kernel.org


Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent f591822c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment