diff options
author | Jiri Pirko <[email protected]> | 2018-02-28 13:12:09 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-02-28 12:32:36 -0500 |
commit | 77d270967c5f723e5910dd073962b6372d7ef466 (patch) | |
tree | cf9ff25bb8ba0eeb1d783da2baeb0f96843ed566 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2ddc94c76cc4ccaf51b478315912b38dfdde1afc (diff) |
mlxsw: spectrum: Fix handling of resource_size_param
Current code uses global variables, adjusts them and passes pointer down
to devlink. With every other mlxsw_core instance, the previously passed
pointer values are rewritten. Fix this by de-globalize the variables and
also memcpy size_params during devlink resource registration.
Also, introduce a convenient size_param_init helper.
Fixes: ef3116e5403e ("mlxsw: spectrum: Register KVD resources with devlink")
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions