net/mlx5: CT: Introduce a platform for multiple flow steering providers
authorPaul Blakey <paulb@nvidia.com>
Tue, 23 Nov 2021 12:41:18 +0000 (14:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Mar 2022 07:38:23 +0000 (23:38 -0800)
commit7690900052303e758b797db1ff8013fe425d1806
tree477b1fe97297ddedf512cfd80a252f2f1c6508a1
parenta3540effb766b868af429ae6f4909457b4d4f5ea
net/mlx5: CT: Introduce a platform for multiple flow steering providers

Currently, fs_core layer provides flow steering services to the driver
including: autogroups, allocating FTEs (flow table entries) and FTE ids,
and support of fte action modification. If then software steering is
configured, rule insertion will go through a translation layer from
firmware buffers to software steering objects (see fs_dr.c).

The connection tracking table is a system table that is not directly
controlled by the user and is a very high scale table. These fs_core
services introduces an overhead that may be optimized by using software
steering API directly.

Introduce ct flow steering interface to allow multiple flow steering
providers. Use the new interface to implement the current dmfs (device
managed flow steering) provider which uses fs_core insertion.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_dmfs.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c