]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Convert linear search for free index to ida
authorMatan Barak <matanb@mellanox.com>
Sun, 28 May 2017 07:58:40 +0000 (10:58 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 Aug 2017 13:02:58 +0000 (16:02 +0300)
commitcc3151d70436d6a4459aaf970893949f627cf0ac
treee5313d092847deee51835cf8e5c80dc6f5790dbe
parentf203b1685d68dd92a1da6a6a45d9a8c11e5b789a
net/mlx5: Convert linear search for free index to ida

When allocating a flow table entry, we need to allocate a free index
in the flow group. Currently, this is done by traversing the existing
flow table entries in the flow group, until a free index is found.
Replacing this by using a ida, which allows us to find a free index
much faster.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h