mlxsw: Move "used_kvd_sizes" check to mlxsw_pci_config_profile
authorJiri Pirko <jiri@mellanox.com>
Sun, 1 Apr 2018 14:34:56 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 14:56:43 +0000 (10:56 -0400)
commit110d2d2141d9671d4b4467ead06d1dc7288d0e9a
treee592f4b161e51b56ae6168e5fe6448fa47e2a564
parent64f4588821776ce08c1ff0271630fcaada138705
mlxsw: Move "used_kvd_sizes" check to mlxsw_pci_config_profile

The check should be done directly in mlxsw_pci_config_profile, as for
other profile items. Also, be consistent in naming with the rest and
rename to "used_kvd_sizes".

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