]> 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)
commit83107e1e2bf21272ae3c9b0d02a2c66403837d35
tree84424d5ca67229e799422387f77077b8ac9f4cf6
parentb25bcf4ffa0f14308ac4ee126c9c002573a61aa6
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