]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb25bcf4ffa0f14308ac4ee126c9c002573a61aa6
tree97acf0ea3e36094f9c3073d7f4b92dec6aedd58f
parent1aab739eed68778075a4ac2802ba302b6b2d33e2
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