mlxsw: spectrum: Pass mapping values in port mapping structure
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:13 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit35896d9641db1af0d6054b03ec3e13f6be83c6b8
tree848dad88ea827f9f35ddd1443129f9e460f79d47
parent7b39fa5befbb531a91bbd91ecac516251063afe3
mlxsw: spectrum: Pass mapping values in port mapping structure

Pass the port mapping structure down to create, module_map and other
function instead of individual values.

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