Re: [PATCH net-next v2] octeontx2-af: Change block parameter to const pointer in get_lf_str_list

From: Simon Horman
Date: Thu Oct 03 2024 - 09:48:21 EST


On Tue, Oct 01, 2024 at 04:35:43PM +0530, Riyan Dhiman wrote:
> Convert struct rvu_block block to const struct rvu_block *block in
> get_lf_str_list() function parameter. This improves efficiency by
> avoiding structure copying and reflects the function's read-only
> access to block.
>
> Signed-off-by: Riyan Dhiman <riyandhiman14@xxxxxxxxx>
> ---
> v2: change target branch to net-next and remove fix tag.
> Compile tested only

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>