]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5_core: Introduce flow steering autogrouped flow table
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 11 Jan 2016 08:25:57 +0000 (10:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:48:52 +0000 (17:48 -0500)
commit22b59b3c750958032641e3888a8b88980c8562f0
treeeb6cbc01671d019638ac125a2bfb4953131b1877
parentebd5e0067411a49b83451f9d8c6e5d82b1be326a
net/mlx5_core: Introduce flow steering autogrouped flow table

When user add rule to autogrouped flow table, we search
for flow group with the same match criteria, if we don't
find such group then we create new flow group with the
required match criteria and insert the rule to this group.

We divide the flow table into required_groups + 1,
in order to reserve a part of the flow table for rules
which don't match any existing group.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
include/linux/mlx5/fs.h