Re: [PATCH net-next 1/4] net/mlx5e: Ensure each counter group uses its PCAM bit

From: Kalesh Anakkur Purayil
Date: Thu Mar 13 2025 - 22:40:36 EST


On Fri, Mar 14, 2025 at 12:56 AM Tariq Toukan <tariqt@xxxxxxxxxx> wrote:
>
> From: Yael Chemla <ychemla@xxxxxxxxxx>
>
> The code was incorrectly relying on PCAM bit of ppcnt_statistical_group
> for accessing per_lane_error_counters.
> If ppcnt_statistical_group PCAM bit was not set, we would not read
> per_lane_error_counters, even when its PCAM bit is set.
> Given the existing device capabilities, it seems to cause no harm, so
> this change primarily serves as cleanup.
>
> Signed-off-by: Yael Chemla <ychemla@xxxxxxxxxx>
> Reviewed-by: Cosmin Ratiu <cratiu@xxxxxxxxxx>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>

LGTM,
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx>


--
Regards,
Kalesh AP

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature