]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/restrack: Track driver QP types in resource tracker
authorGal Pressman <galpress@amazon.com>
Thu, 1 Aug 2019 10:43:54 +0000 (13:43 +0300)
committerSasha Levin <sashal@kernel.org>
Sun, 25 Aug 2019 14:10:32 +0000 (10:10 -0400)
commit421c77400ed0a04a84d4c3ac83f1d933ff044623
tree602a457f3dd6e5d0e65e2e6f5dcb7ce8ad108b28
parentb542fe8c78b417ab9160cd47493597f3299ad22c
RDMA/restrack: Track driver QP types in resource tracker

[ Upstream commit 52e0a118a20308dd6aa531e20a5ab5907d2264c8 ]

The check for QP type different than XRC has excluded driver QP
types from the resource tracker.
As a result, "rdma resource show" user command would not show opened
driver QPs which does not reflect the real state of the system.

Check QP type explicitly instead of assuming enum values/ordering.

Fixes: 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
Signed-off-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190801104354.11417-1-galpress@amazon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/core_priv.h