]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1e9c2b2af207fb946d9f21cec1cc5fc496a2ad7
tree98020ac7b830c962f136a3235799163597f3de9d
parent1fa8046697900e0b2fde3bc132a542f12ffdcf95
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