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 {
268268};
269269
270270struct mlxsw_resources {
271+ u8 max_span_valid :1 ;
272+ u8 max_span ;
271273};
272274
273275struct 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,
11551155}
11561156
11571157#define MLXSW_RESOURCES_TABLE_END_ID 0xffff
1158+ #define MLXSW_MAX_SPAN_ID 0x2420
11581159#define MLXSW_RESOURCES_QUERY_MAX_QUERIES 100
11591160#define MLXSW_RESOURCES_PER_QUERY 32
11601161
11611162static void mlxsw_pci_resources_query_parse (int id , u64 val ,
11621163 struct mlxsw_resources * resources )
11631164{
11641165 switch (id ) {
1166+ case MLXSW_MAX_SPAN_ID :
1167+ resources -> max_span = val ;
1168+ resources -> max_span_valid = 1 ;
1169+ break ;
11651170 default :
11661171 break ;
11671172 }
You can’t perform that action at this time.
0 commit comments