]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/counter: Allow manually bind QPs with different pids to same counter
authorMark Zhang <markz@mellanox.com>
Thu, 2 Jul 2020 08:29:33 +0000 (11:29 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jul 2020 19:50:53 +0000 (16:50 -0300)
commitdcf5cbbd935685b6dd24cf9dc7695c2fc0e69f89
tree41cf07c8323dceaec0f1d4d867eee967c469d948
parent8027cbd1af1803d4bcd9deea734578f4554b04fe
RDMA/counter: Allow manually bind QPs with different pids to same counter

In manual mode allow bind user QPs with different pids to same counter,
since this is allowed in auto mode.
Bind kernel QPs and user QPs to the same counter are not allowed.

Fixes: 7447cf4ff185 ("RDMA/counter: Allow manual mode configuration support")
Link: https://lore.kernel.org/r/20200702082933.424537-4-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/counters.c