Hi,

> -----Original Message-----
> From: Dariusz Sosnowski <dsosnow...@nvidia.com>
> Sent: Tuesday, November 22, 2022 2:53 PM
> To: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko
> <viachesl...@nvidia.com>; Bing Zhao <bi...@nvidia.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasl...@nvidia.com>; Ori Kam
> <or...@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: bi...@nvidia.com
> 
> Signed-off-by: Dariusz Sosnowski <dsosnow...@nvidia.com>
> Reviewed-by: Bing Zhao <bi...@nvidia.com>
> Acked-by: Ori Kam <or...@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

Reply via email to