]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Add ACL devlink-trap support
authorJiri Pirko <jiri@mellanox.com>
Mon, 24 Feb 2020 07:35:55 +0000 (08:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:55:07 +0000 (11:55 -0800)
commitafe22ffa9d92ef23fbbe8851cf9c16f38bb32f7f
tree90318736250356c7db50ed00fd44735917ebee07
parent2148dd33563e178fd4431bde3b2bb808f7c1010a
mlxsw: spectrum_trap: Add ACL devlink-trap support

Add the trap group used to report ACL drops. Setup the trap IDs for
ingress/egress flow action drop. Register the two packet traps
associated with ACL trap group with devlink during driver
initialization. As these are "source traps", set the disabled
trap group to be the dummy, discarding as many packets in HW
as possible.

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>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c