]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: SF, Improve performance in SF allocation
authorEli Cohen <elic@nvidia.com>
Mon, 26 Apr 2021 06:58:55 +0000 (09:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 26 Jun 2021 07:31:20 +0000 (00:31 -0700)
commitf14c00de42a1265a1c790d5f1ccbef4d58ea0022
treebe8f14c6889b256a2cbd33ba278160af62717bfc
parent146ba7efd09703c1d978635d1a9a4ece96203eae
net/mlx5: SF, Improve performance in SF allocation

Avoid second traversal on the SF table by recording the first free entry
and using it in case the looked up entry was not found in the table.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c