Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common/mlx5: fix duplicate read of general capabilities
[ upstream commit e8ffd7c26637b9119694368f16d2eb1341767fc6 ] General object types support is indicated in bitmap general_obj_types, which is part of HCA capabilities list. This bitmap was read multiple times, and each time a different bit was extracted. Previous patch optimized the code, reading the bitmap once into a local variable, and then extracting the required bits. However, it missed few of them which still read the bitmap for themselves. In addition, for other readings, it moved them to use local variable without removing the old reading, and they are read twice. This patch moves them all to use the local variable and removes all duplications. Fixes: 876d470 ("common/mlx5: optimize read of general capabilities") Signed-off-by: Michael Baum <michaelba@nvidia.com> Acked-by: Suanming Mou <suanmingm@nvidia.com>
- Loading branch information