[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <994A4354E63E1310+20250311141701.1626533-2-wangyuli@uniontech.com>
Date: Tue, 11 Mar 2025 22:17:01 +0800
From: WangYuli <wangyuli@...ontech.com>
To: wangyuli@...ontech.com
Cc: andrew+netdev@...n.ch,
chenlinxuan@...ontech.com,
czj2441@....com,
davem@...emloft.net,
edumazet@...gle.com,
guanwentao@...ontech.com,
idosch@...dia.com,
kuba@...nel.org,
linux-kernel@...r.kernel.org,
netdev@...r.kernel.org,
niecheng1@...ontech.com,
pabeni@...hat.com,
petrm@...dia.com,
zhanjun@...ontech.com
Subject: [PATCH net 2/2] mlxsw: spectrum_acl_bloom_filter: Type block_count to u32
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@....com>
Signed-off-by: Zijian Chen <czj2441@....com>
Signed-off-by: WangYuli <wangyuli@...ontech.com>
---
.../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
Powered by blists - more mailing lists