diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-02-28 13:12:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-28 12:32:36 -0500 |
commit | 77d270967c5f723e5910dd073962b6372d7ef466 (patch) | |
tree | cf9ff25bb8ba0eeb1d783da2baeb0f96843ed566 /net/core/xdp.c | |
parent | 2ddc94c76cc4ccaf51b478315912b38dfdde1afc (diff) | |
download | linux-77d270967c5f723e5910dd073962b6372d7ef466.tar.bz2 |
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 <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/xdp.c')
0 files changed, 0 insertions, 0 deletions