[PATCH] net/mlx5: fix available tag registers calculation for HWS
Raslan Darawsheh
rasland at nvidia.com
Sun Dec 18 13:05:18 CET 2022
Hi,
> -----Original Message-----
> From: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Sent: Tuesday, November 22, 2022 2:53 PM
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Bing Zhao <bingz at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Ori Kam
> <orika at nvidia.com>
> Subject: [PATCH] net/mlx5: fix available tag registers calculation for HWS
>
> Before this patch, if two ports in separate switch domains were probed by an
> application, the shared array of available TAG registers was calculated
> incorrectly.
>
> When the intersection of supported REG_C registers and available TAG
> registers was calculated, capabilities were checked against an index of the
> TAG array, not the register stored under that index.
>
> This patch fixes this behavior by comparing capabilities mask against registers
> stored in the TAG array.
> Available TAG registers calculation is also refactored to simplify the code.
>
> Fixes: 8a89038f40ca ("net/mlx5: provide available tag registers")
> Cc: bingz at nvidia.com
>
> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Reviewed-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Ori Kam <orika at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list