Revision 52e0a118a20308dd6aa531e20a5ab5907d2264c8 authored by Gal Pressman on 01 August 2019, 10:43:54 UTC, committed by Doug Ledford on 01 August 2019, 15:54:13 UTC
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>
1 parent e5366d3
History
File Mode Size
Build -rw-r--r-- 143 bytes
Makefile -rw-r--r-- 1.9 KB
iio_event_monitor.c -rw-r--r-- 8.8 KB
iio_generic_buffer.c -rw-r--r-- 16.2 KB
iio_utils.c -rw-r--r-- 21.2 KB
iio_utils.h -rw-r--r-- 2.8 KB
lsiio.c -rw-r--r-- 3.7 KB

back to top