Add the max number of rif (router interfaces) 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>
max_virtual_routers_valid:1,
max_system_ports_valid:1,
max_vlan_groups_valid:1,
- max_regions_valid:1;
+ max_regions_valid:1,
+ max_rif_valid:1;
u8 max_span;
u8 max_lag;
u8 max_ports_in_lag;
u16 max_system_ports;
u16 max_vlan_groups;
u16 max_regions;
+ u16 max_rif;
/* Internal resources.
* Determined by the SW, not queried from the HW.
#define MLXSW_MAX_SYSTEM_PORT_ID 0x2502
#define MLXSW_MAX_VLAN_GROUPS_ID 0x2906
#define MLXSW_MAX_REGIONS_ID 0x2901
+#define MLXSW_MAX_RIF_ID 0x2C02
#define MLXSW_RESOURCES_QUERY_MAX_QUERIES 100
#define MLXSW_RESOURCES_PER_QUERY 32
resources->max_regions = val;
resources->max_regions_valid = 1;
break;
+ case MLXSW_MAX_RIF_ID:
+ resources->max_rif = val;
+ resources->max_rif_valid = 1;
+ break;
default:
break;
}