diff options
| author | Parav Pandit <parav@mellanox.com> | 2017-10-16 08:45:14 +0300 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2017-10-18 19:10:36 +0300 |
| commit | 79c4d80b43b8e43684894574a508a871f0c196bf (patch) | |
| tree | a55176331009b6ab29c3834c74b8bbdcc8c98fcd /include | |
| parent | c0348eb069687a2f27c0cd23dafb35918edf9e75 (diff) | |
| download | linux-79c4d80b43b8e43684894574a508a871f0c196bf.tar.xz | |
IB/core: Fix unable to change lifespan entry for hw_counters
This patch fixes the case where 'lifespan' entry of the hw_counters
is not writable. Currently write callback is not exposed for for
the hw_counters sysfs operation. Due to this, modifying lifespan
value results into permission denied error in below example.
echo 10 > /sys/class/infiniband/mlx5_0/ports/1/hw_counters/lifespan
-bash: /sys/class/infiniband/mlx5_0/ports/1/hw_counters/lifespan:
Permission denied
This patch adds the hook to modify any attribute which implements
store() operation.
Fixes: b40f4757daa1 ("IB/core: Make device counter infrastructure dynamic")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
