[PATCH net 2/2] mlxsw: spectrum_acl_bloom_filter: Type block_count to u32
From: WangYuli
Date: Tue Mar 11 2025 - 10:19:07 EST
In light of the fact that block_count is populated by
mlxsw_afk_key_info_blocks_count_get(key_info), whose type is unsigned
int and which returns the blocks_count member (also of type unsigned
int) from the mlxsw_afk_key_info struct, it is illogical to define
block_count as u8.
Co-developed-by: Zijian Chen <czj2441@xxxxxxx>
Signed-off-by: Zijian Chen <czj2441@xxxxxxx>
Signed-off-by: WangYuli <wangyuli@xxxxxxxxxxxxx>
---
.../net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c
index 96105bab680b..174bfda53985 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c
@@ -224,7 +224,8 @@ __mlxsw_sp_acl_bf_key_encode(struct mlxsw_sp_acl_atcam_region *aregion,
u8 key_offset, u8 chunk_key_len, u8 chunk_len)
{
struct mlxsw_afk_key_info *key_info = aregion->region->key_info;
- u8 chunk_index, chunk_count, block_count;
+ u8 chunk_index, chunk_count;
+ u32 block_count;
char *chunk = output;
char *enc_key_src_ptr;
__be16 erp_region_id;
--
2.47.2