]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Explicitly register packet trap groups
authorIdo Schimmel <idosch@mellanox.com>
Sun, 22 Mar 2020 18:48:27 +0000 (20:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:40:40 +0000 (21:40 -0700)
commite54f38789e2075d7f590e104c7a83f361d9afb07
tree30c47be480c2574f35e7658f32c805068dbf9cb5
parentc81ac57e2e6767c3cf9e6e3384d066e026e6bc72
mlxsw: spectrum_trap: Explicitly register packet trap groups

Use the previously added API to explicitly register / unregister
supported packet trap groups. This is in preparation for future patches
that will enable drivers to pass additional group attributes, such as
associated policer identifier.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c