diff options
author | Parav Pandit <parav@mellanox.com> | 2018-10-07 11:12:40 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-10-16 20:09:44 +0200 |
commit | 0f6ef65d1c6ec8deb5d0f11f86631ec4cfe8f22e (patch) | |
tree | c3945ab32a08f417d255908d8cf1b182408a016a /include/rdma | |
parent | IB/mlx4: Refer to the device kobject instead of ports_parent (diff) | |
download | linux-0f6ef65d1c6ec8deb5d0f11f86631ec4cfe8f22e.tar.xz linux-0f6ef65d1c6ec8deb5d0f11f86631ec4cfe8f22e.zip |
RDMA/core: Do not expose unsupported counters
If the provider driver (such as rdma_rxe) doesn't support pma counters,
avoid exposing its directory similar to optional hw_counters directory.
If core fails to read the PMA counter, return an error so that user can
retry later if needed.
Fixes: 35c4cbb17811 ("IB/core: Create get_perf_mad function in sysfs.c")
Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions