]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: fs, add mlx5_fs_pool API
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 19 Dec 2024 17:58:34 +0000 (19:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:34:45 +0000 (10:34 -0800)
commit31d1356b8fdcdb7fe845874b598cce552a151c64
tree605c9f53d25edd435cd20951b96af609a149777c
parent95f68e06b41b9e88291796efa3969409d13fdd4c
net/mlx5: fs, add mlx5_fs_pool API

Refactor fc_pool API to create generic fs_pool API, as HW steering has
more flow steering elements which can take advantage of the same pool of
bulks API. Change fs_counters code to use the fs_pool API.

Note, removed __counted_by from struct mlx5_fc_bulk as bulk_len is now
inner struct member. It will be added back once __counted_by can support
inner struct members.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241219175841.1094544-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.h [new file with mode: 0644]