• Ido Schimmel's avatar
    mlxsw: spectrum: Use dedicated trap group for ACL trap · 3c2d8a04
    Ido Schimmel authored
    Packets that are trapped via tc's trap action are currently subject to
    the same policer as packets hitting local routes. The latter are
    critical to the correct functioning of the control plane, while the
    former are mainly used for traffic inspection.
    
    Split the ACL trap to a separate group with its own policer. Use a
    higher priority for these traps than for traps using mirror action
    (e.g., ARP, IGMP). Otherwise, packets matching both traps will not be
    forwarded in hardware (because of trap action) and also not forwarded in
    software because they will be marked with 'offload_fwd_mark'.
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3c2d8a04
reg.h 313 KB