diff options
author | Ido Schimmel | 2018-07-25 08:24:02 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-26 01:46:01 +0200 |
commit | f58df510f899e4560c4e2d397f05a53f0d343fc0 (patch) | |
tree | b10ba910a5488b6c9995e01ee53b87ef1556b95e /drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c | |
parent | mlxsw: spectrum_acl: Encapsulate C-TCAM region in A-TCAM region (diff) | |
download | kernel-qcow2-linux-f58df510f899e4560c4e2d397f05a53f0d343fc0.tar.gz kernel-qcow2-linux-f58df510f899e4560c4e2d397f05a53f0d343fc0.tar.xz kernel-qcow2-linux-f58df510f899e4560c4e2d397f05a53f0d343fc0.zip |
mlxsw: spectrum_acl: Make global TCAM resources available to regions
Each TCAM region currently uses its own resources and there is no
sharing between the different regions.
This is going to change with A-TCAM as each region will need to allocate
an eRP table from the global eRP tables array.
Make the global TCAM resources available to each region by passing the
TCAM private data to the region initialization routine.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c index d339ec43d79c..926483434e99 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c @@ -122,6 +122,7 @@ mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, static int mlxsw_sp1_acl_tcam_region_init(struct mlxsw_sp *mlxsw_sp, void *region_priv, + void *tcam_priv, struct mlxsw_sp_acl_tcam_region *_region) { struct mlxsw_sp1_acl_tcam_region *region = region_priv; |