]> 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)
commitf14034a8b5368f68f7610626cfd1e77ea33cb372
tree98020ac7b830c962f136a3235799163597f3de9d
parentb28123505ac1f30ea4328c70593db7aaaf652a60
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