]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Tc nic flows to use mlx5_chains flow tables
authorAriel Levkovich <lariel@mellanox.com>
Mon, 27 Apr 2020 22:29:26 +0000 (01:29 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:35 +0000 (15:44 -0700)
commitce3d0f8b2dcddd3d1fd315d41fe034b186c12c17
tree019d1870ed47470cfd9c045de414951015bf6dd5
parentb763782a33fdf44eb4566faa051682b94696155d
net/mlx5e: Tc nic flows to use mlx5_chains flow tables

Change nic tc flows offload path to use the chains and prios
infrastructure for the flow table creation as a preparation to
support tc multi chains and priorities for nic flows.

Adding an instance of the table chaining database to the nic tc struct
and perform the root table creation and desctuction via the chains api
while keeping the limit of a single chain (0) in nic tc mode.
This will be extendable to supporting multiple chains in the following
patches.

The flow table sizes and default miss table parameters that are provided
to the chains creation api are kept the same.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c