diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-04-01 17:34:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-01 10:56:42 -0400 |
commit | 4f8768befdea9d8004361f180ca559f22ce5346d (patch) | |
tree | 60e3d4fba6b1e5b73768959437d81bfc34996424 /scripts/gcc-plugins/structleak_plugin.c | |
parent | f9b9120119ca70ccdb1c900ac061425e4784c4de (diff) | |
download | linux-4f8768befdea9d8004361f180ca559f22ce5346d.tar.gz linux-4f8768befdea9d8004361f180ca559f22ce5346d.tar.xz |
mlxsw: spectrum: Change KVD linear parts from list to array
The parts info is array. The parts copy this info array, yet they are a
list. So make the indexing according to the id and change the list of
parts into array of parts. This helps to eliminate lookups and
constructs like mlxsw_sp_kvdl_part_update() (took me some non-trivial
time to figure out what is going on there).
Alongside with that, introduce a helper macro to define the parts infos.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions