net/mlx5: Add hash table to search FTEs in a flow-group
authorMatan Barak <matanb@mellanox.com>
Sun, 28 May 2017 09:09:06 +0000 (12:09 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 Aug 2017 13:02:58 +0000 (16:02 +0300)
commit0d235c3fabb79bddc46527885985f0ae281a89f9
tree97acf0ea3e36094f9c3073d7f4b92dec6aedd58f
parent667cb65ae5ad01523505d48d6cfd92bd1d3c9785
net/mlx5: Add hash table to search FTEs in a flow-group

When adding a flow table entry (fte) to a flow group (fg), we first
need to check whether this fte exist. In such a case we just merge
the destinations (if possible). Currently, this is done by traversing
the fte list available in a fg. This could take a lot of time when
using large flow groups. Speeding this up by using rhashtable, which
is 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