]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl_bloom_filter: Reorder functions to make the code more aesthetic
authorAmit Cohen <amcohen@nvidia.com>
Thu, 6 Jan 2022 16:06:47 +0000 (18:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Jan 2022 04:00:44 +0000 (20:00 -0800)
commit9abfa23044f12535b981c39c6479eb55e16f0885
tree595f31b52a4fb636ced5e502fcf4cac9e612cbd1
parentb2f17a569235d710def3cd1da46ab0206409b610
mlxsw: spectrum_acl_bloom_filter: Reorder functions to make the code more aesthetic

Currently, mlxsw_sp_acl_bf_rule_count_index_get() is implemented before
mlxsw_sp_acl_bf_index_get() but is used after it.

Adding a new function for Spectrum-4 would make them further apart still.
Fix by moving them around.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c