diff options
author | Ido Schimmel | 2018-07-25 08:24:00 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-26 01:46:01 +0200 |
commit | 174c0adb69a56bf098d9eb50cd3a78ec14657817 (patch) | |
tree | 0fa436b26ad498a3c49c3f85c8887842f8d7bf83 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h | |
parent | mlxsw: spectrum_acl: Allow encoding a partial key (diff) | |
download | kernel-qcow2-linux-174c0adb69a56bf098d9eb50cd3a78ec14657817.tar.gz kernel-qcow2-linux-174c0adb69a56bf098d9eb50cd3a78ec14657817.tar.xz kernel-qcow2-linux-174c0adb69a56bf098d9eb50cd3a78ec14657817.zip |
mlxsw: spectrum_acl: Add A-TCAM initialization
Initialize the A-TCAM as part of the driver's initialization routine.
Specifically, initialize the eRP tables so that A-TCAM regions will be
able to perform allocations of eRP tables upon rule insertion in
subsequent patches.
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/spectrum_acl_tcam.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h index 70094936ca43..ac6bdffd99a7 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h @@ -173,6 +173,10 @@ int mlxsw_sp_acl_atcam_region_associate(struct mlxsw_sp *mlxsw_sp, u16 region_id); int mlxsw_sp_acl_atcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region); +int mlxsw_sp_acl_atcam_init(struct mlxsw_sp *mlxsw_sp, + struct mlxsw_sp_acl_atcam *atcam); +void mlxsw_sp_acl_atcam_fini(struct mlxsw_sp *mlxsw_sp, + struct mlxsw_sp_acl_atcam *atcam); struct mlxsw_sp_acl_erp; |