]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add support to create match definer
authorMaor Gottlieb <maorg@nvidia.com>
Tue, 6 Jul 2021 14:48:26 +0000 (17:48 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Oct 2021 03:18:07 +0000 (20:18 -0700)
commit430ddfa8359141cb842b6bebe2a39e5d78927a60
tree2b5711092262768d34e9decac55951068687fc4f
parent72be0d45c291078763bd0062064d001a084402c2
net/mlx5: Add support to create match definer

Introduce new APIs to create and destroy flow matcher
for given format id.

Flow match definer object is used for defining the fields and
mask used for the hash calculation. User should mask the desired
fields like done in the match criteria.

This object is assigned to flow group of type hash. In this flow
group type, packets lookup is done based on the hash result.

This patch also adds the required bits to create such flow group.

Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c
include/linux/mlx5/fs.h
include/linux/mlx5/mlx5_ifc.h