diff options
author | Nogah Frankel <nogahf@mellanox.com> | 2016-09-20 11:16:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 01:00:58 -0400 |
commit | 2acd10c51bd2ce3a39c75fa3ff113e32e2413c6f (patch) | |
tree | 1c138e50aa07f2960cb7e61ae98d76f2d68a5330 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | ce0bd2b0c57a2d97ea89f87f61b9f5758139bcb8 (diff) | |
download | linux-stable-2acd10c51bd2ce3a39c75fa3ff113e32e2413c6f.tar.gz linux-stable-2acd10c51bd2ce3a39c75fa3ff113e32e2413c6f.tar.bz2 linux-stable-2acd10c51bd2ce3a39c75fa3ff113e32e2413c6f.zip |
mlxsw: pci: Add KVD size relate resources
Add KVD size, and minimum sizes for the single and double
sections resources to resources query.
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index 558d1ce89531..76ad566a0421 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -267,10 +267,16 @@ struct mlxsw_driver { struct mlxsw_resources { u8 max_span_valid:1, max_lag_valid:1, - max_ports_in_lag_valid:1; + max_ports_in_lag_valid:1, + kvd_size_valid:1, + kvd_single_min_size_valid:1, + kvd_double_min_size_valid:1; u8 max_span; u8 max_lag; u8 max_ports_in_lag; + u32 kvd_size; + u32 kvd_single_min_size; + u32 kvd_double_min_size; }; struct mlxsw_resources *mlxsw_core_resources_get(struct mlxsw_core *mlxsw_core); |