OSDN Git Service

mlxsw: spectrum: Use mapping of port being split for creating split ports
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:12 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit7b39fa5befbb531a91bbd91ecac516251063afe3
tree98020ac7b830c962f136a3235799163597f3de9d
parent4a7f970f1240523b1bbabac88811e429de4697cb
mlxsw: spectrum: Use mapping of port being split for creating split ports

Don't use constant max width value and instead of that, use the actual
width of the port. Also don't pass module value and use the value
stored in the same structure.

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