Hi, > -----Original Message----- > From: Dariusz Sosnowski <[email protected]> > Sent: Tuesday, November 22, 2022 2:53 PM > To: Matan Azrad <[email protected]>; Slava Ovsiienko > <[email protected]>; Bing Zhao <[email protected]> > Cc: [email protected]; Raslan Darawsheh <[email protected]>; Ori Kam > <[email protected]> > 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: [email protected] > > Signed-off-by: Dariusz Sosnowski <[email protected]> > Reviewed-by: Bing Zhao <[email protected]> > Acked-by: Ori Kam <[email protected]>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

