]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Move table size calculation to steering cmd layer
authorPaul Blakey <paulb@nvidia.com>
Mon, 8 Mar 2021 12:20:24 +0000 (14:20 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:37 +0000 (11:54 -0700)
commita70924572cd5c38cff8a5f3f8c127c02bf61fb87
treeff92ad1ba9ac55a3b0f324078236e42296e0aed8
parent2c84ae0cd59ddb0025ce77c92b2d8e92f9d9c018
net/mlx5: Move table size calculation to steering cmd layer

Currently the table size is calculated by the fs_core layer. However, each
steering cmd instance has a different allocation logic. FW steering uses
a predefined pools of multiple sizes. SW steering doesn't have a pool,
and can allocate any size of tables.

Move the table size calculation to the steering cmd layer as a pre-step
for moving fs_chains pool logic globally to firmware steering, and
increasing table sizes for software steering. In addition, change the
size parameter to absolute size to allow the special zero value to
mean "get next available maximum size".

Signed-off-by: Paul Blakey <paulb@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/steering/fs_dr.c