]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Allocate port mapping array of structs instead of pointers
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:30 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commit4bdf75c3c2463717f9da6bcb2b9a7d7b3220d192
tree92705bd9fd4bc3eded8611135a6ed95fa610f692
parent4f47f33b7a3c787bb0d8fe3c411c4a3b8476096d
mlxsw: spectrum: Allocate port mapping array of structs instead of pointers

Instead of array of pointers to port mapping structures, allocate the
array of structures directly.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h