File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
drivers/net/ethernet/mellanox/mlxsw Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ struct mlxsw_driver {
268
268
};
269
269
270
270
struct mlxsw_resources {
271
+ u8 max_span_valid :1 ;
272
+ u8 max_span ;
271
273
};
272
274
273
275
struct mlxsw_resources * mlxsw_core_resources_get (struct mlxsw_core * mlxsw_core );
Original file line number Diff line number Diff line change @@ -1155,13 +1155,18 @@ mlxsw_pci_config_profile_swid_config(struct mlxsw_pci *mlxsw_pci,
1155
1155
}
1156
1156
1157
1157
#define MLXSW_RESOURCES_TABLE_END_ID 0xffff
1158
+ #define MLXSW_MAX_SPAN_ID 0x2420
1158
1159
#define MLXSW_RESOURCES_QUERY_MAX_QUERIES 100
1159
1160
#define MLXSW_RESOURCES_PER_QUERY 32
1160
1161
1161
1162
static void mlxsw_pci_resources_query_parse (int id , u64 val ,
1162
1163
struct mlxsw_resources * resources )
1163
1164
{
1164
1165
switch (id ) {
1166
+ case MLXSW_MAX_SPAN_ID :
1167
+ resources -> max_span = val ;
1168
+ resources -> max_span_valid = 1 ;
1169
+ break ;
1165
1170
default :
1166
1171
break ;
1167
1172
}
You can’t perform that action at this time.
0 commit comments