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)
commit5bd8cee2b9c5aa31d58ed97caca433f0bf74c574
treebe8f14c6889b256a2cbd33ba278160af62717bfc
parent6cdc686aa3163192ebce8ea72efee806729172c2
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