mlxsw: spectrum: Add support for flower matches on VLAN ID, PCP
Introduce MLXSW_AFK_ELEMENT_VID, PCP and declare them in afk_element infos that contain them. Use the elements when VLAD ID or priority are used in the flow. Also add MLXSW_AFK_ELEMENT_VID, PCP to mlxsw_sp_acl_tcam_pattern_ipv4. Both items are included in mlxsw_sp_afk_element_info_l2_dmac, resp. _smac, and both MLXSW_AFK_ELEMENT_SMAC and _DMAC are already in the pattern. Signed-off-by:Petr Machata <petrm@mellanox.com> Reviewed-by:
Ido Schimmel <idosch@mellanox.com> Signed-off-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h 5 additions, 1 deletiondrivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h 6 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 2 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 23 additions, 1 deletiondrivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
Please register or sign in to comment