aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2017-10-16 08:45:14 +0300
committerDoug Ledford <dledford@redhat.com>2017-10-18 12:10:36 -0400
commit79c4d80b43b8e43684894574a508a871f0c196bf (patch)
treea55176331009b6ab29c3834c74b8bbdcc8c98fcd /drivers/infiniband/hw/mlx5
parentIB: Let ib_core resolve destination mac address (diff)
downloadlinux-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