summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/core.h
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2016-09-20 11:16:53 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-21 01:00:59 -0400
commitb8a09f0a0938acee81c386e3c27e7aca78b087eb (patch)
treed11115c47c1b19f8cd4c259d47f99db6db98b2e0 /drivers/net/ethernet/mellanox/mlxsw/core.h
parent403547d38d0b99f589a0d87f3a5f352895e54aae (diff)
mlxsw: pci: Add max virtual routers resource
Add the max number of virtual routers to resource 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h
index 1193bdcc4407..e936dc9bdb9b 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/core.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/core.h
@@ -272,13 +272,15 @@ struct mlxsw_resources {
max_ports_in_lag_valid:1,
kvd_size_valid:1,
kvd_single_min_size_valid:1,
- kvd_double_min_size_valid:1;
+ kvd_double_min_size_valid:1,
+ max_virtual_routers_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;
+ u16 max_virtual_routers;
/* Internal resources.
* Determined by the SW, not queried from the HW.