You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Merge-monkey: Aron Silverton <[email protected]>
Merge-monkey-notes:
The commit title and commit message body were updated to match the
upstream commit which more accurately describes the code change.
A reference to the upstream commit this fixes was also added.
Orabug: 26761264
MlnxSF: 00384047
Upstream_status: done
issue: 1124008
Change-Id: Ieeb30eb65a80e9afab4a0a53bac6edc4a6e6ee73
Fixes: b40f475 ("IB/core: Make device counter infrastructure dynamic")
Signed-off-by: Parav Pandit <[email protected]>
Signed-off-by: Aron Silverton <[email protected]>
Reviewed-by: Håkon Bugge <[email protected]>
Signed-off-by: Somasundaram Krishnasamy <[email protected]>
0 commit comments