net/mlx5: Move the entry index allocator to flow group
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 16 Jul 2017 12:18:45 +0000 (15:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 26 Sep 2017 17:52:01 +0000 (20:52 +0300)
commit75d1d187b2ac86d1af2f1fd125ec21f104ca34b0
treefcccaae5b7c530ffae0f83283dae526985e93168
parent800350a3f145010c353bd7425428c05ac5cfc26a
net/mlx5: Move the entry index allocator to flow group

When new flow table entry is added, we search for free index
in the flow group and not in the flow table, therefore we can move
the allocator from flow table to flow group.
In downstream patches it will enable us to lock smaller part
of the steering tree.

Signed-off-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