mlxsw: spectrum: Expose KVD size for Spectrum-2
authorAmit Cohen <amitc@mellanox.com>
Tue, 23 Jul 2019 07:57:41 +0000 (10:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:36:19 +0000 (11:36 -0700)
commitb06689cc1b0446b959ed1a41b4f8dd892aa6b331
tree441efdbd27d86e557f6a2b049487c7815ee06f0d
parentc93496e9f7680741c25bab866e729e9606bfae3e
mlxsw: spectrum: Expose KVD size for Spectrum-2

Unlike Spectrum-1, the KVD (Key-value database) of Spectrum-2 is not
partitioned, so only expose the entire KVD size. This enables users to
query the total size of the KVD.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-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/spectrum.c