]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add hash table for flow groups in flow table
authorMatan Barak <matanb@mellanox.com>
Sun, 28 May 2017 13:45:31 +0000 (16:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 Aug 2017 13:02:58 +0000 (16:02 +0300)
commitf7c983106c1030f539dfb3082b3a778d623c281e
tree84424d5ca67229e799422387f77077b8ac9f4cf6
parent5626b5e413aff3526b22629f38603a5ba4ba4310
net/mlx5: Add hash table for flow groups in flow table

When adding a flow table entry (fte) to a flow table (ft), we first
need to find its flow group (fg). Currently, this is done by
traversing a linear list of all flow groups in the flow table.
Furthermore, since multiple flow groups which correspond to the same
fte mask may exist in the same ft, we can't just stop at the first
match. Converting the linear list to rhltable in order to speed things
up.

The last four patches increases the steering rules update rate by a
factor of more than 7 (for insertion of 50K steering rules).

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