]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: FS, Convert vport acls root namespaces to xarray
authorSaeed Mahameed <saeedm@nvidia.com>
Fri, 29 Aug 2025 22:37:16 +0000 (15:37 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Sep 2025 13:18:16 +0000 (15:18 +0200)
commit2e894b99c0172759f89af506cdd898ced0b14e13
tree19700378339eed749bd9c9e7aaf78c8bef39a1a4
parent48195dd18f0eb10879960196925f914ca2600806
net/mlx5: FS, Convert vport acls root namespaces to xarray

Before this patch it was a linear array and could only support a certain
number of vports, in the next patches, vport numbers are not bound to a
well known limit, thus convert acl root name space storage to xarray.

In addition create fs_core public API to add/remove vport acl namespaces
as it is the eswitch responsibility to create the vports and their
root name spaces for acls, in the next patch we will move
mlx5_fs_ingress_acls_{init,cleanup} to eswitch and will use
the individual mlx5_fs_vport_{egress,ingresS}_acl_ns_{add,remove}
APIs for dynamically create vports.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250829223722.900629-2-saeed@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h