Jiri Pirko 77d270967c 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>
2018-02-28 12:32:36 -05:00
..
2018-02-15 14:29:27 -08:00
2017-11-01 12:19:03 +09:00
2018-02-27 14:36:28 -05:00
2018-02-16 15:16:05 -05:00
2017-11-08 16:12:33 +09:00
2018-02-26 15:07:04 -05:00
2018-02-27 14:41:48 -05:00
2018-02-01 09:51:57 -08:00