diff options
author | 2017-10-16 08:45:14 +0300 | |
---|---|---|
committer | 2017-10-18 12:10:36 -0400 | |
commit | 79c4d80b43b8e43684894574a508a871f0c196bf (patch) | |
tree | a55176331009b6ab29c3834c74b8bbdcc8c98fcd /drivers/infiniband/hw/mlx5 | |
parent | IB: Let ib_core resolve destination mac address (diff) | |
download | linux-dev-79c4d80b43b8e43684894574a508a871f0c196bf.tar.xz linux-dev-79c4d80b43b8e43684894574a508a871f0c196bf.zip |
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 'drivers/infiniband/hw/mlx5')
0 files changed, 0 insertions, 0 deletions