mlxsw: spectrum_acl: Implement priority setting for rules inserted to TCAM
For Spectrum-2, we need to insert priority to C-TCAM because HW needs that info in order to correctly process scenarios where rules are in both C-TCAM and A-TCAM. So extend the mlxsw_sp_acl_ctcam_entry_add() args to accept indication if priority needs to be filled up and implement the priority computation and fill-up. Signed-off-by:Jiri Pirko <jiri@mellanox.com> Signed-off-by:
Ido Schimmel <idosch@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c 3 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 13 additions, 4 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 23 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h 5 additions, 1 deletiondrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h
Loading
Please register or sign in to comment