OSDN Git Service

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)
commit4711671297ecfe5a5e9976f449c6161133f5ebb1
tree595f31b52a4fb636ced5e502fcf4cac9e612cbd1
parent07ff135958dd293988f21ca74c51499a8bb90f88
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