diff options
author | Jiri Pirko <[email protected]> | 2023-06-28 13:19:05 +0200 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2023-09-19 23:33:07 -0700 |
commit | 7c35cd836f21acbb1141e03bca737c7e6ddd768a (patch) | |
tree | 8a8d6fb45282d0c96e789441d518283b17400a11 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2fe6545ef541bff33362bcce9214e9e390ca34b9 (diff) |
net/mlx5: Remove redundant max_sfs check and field from struct mlx5_sf_dev_table
table->max_sfs is initialized in mlx5_sf_dev_table_create() and only
used to check for 0 in mlx5_sf_dev_add(). mlx5_sf_dev_add() is called
either from mlx5_sf_dev_state_change_handler() or
mlx5_sf_dev_add_active_work(). Both ensure max SF count is not 0,
using mlx5_sf_max_functions() helper before calling mlx5_sf_dev_add().
So remove the redundant check and no longer used max_sfs field.
Signed-off-by: Jiri Pirko <[email protected]>
Reviewed-by: Shay Drory <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions