]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Only pass packet trap group identifier in trap structure
authorIdo Schimmel <idosch@mellanox.com>
Sun, 22 Mar 2020 18:48:30 +0000 (20:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:40:40 +0000 (21:40 -0700)
commit1bd7311ba06b572ad1dd3e3f910407bf758727e2
treeca77a17a3fe462965cdee934fa5ac00d4d53147d
parent0c5174b1357516150c701d0370e212e24bdd9ee4
devlink: Only pass packet trap group identifier in trap structure

Packet trap groups are now explicitly registered by drivers and not
implicitly registered when the packet traps are registered. Therefore,
there is no need to encode entire group structure the trap is associated
with inside the trap structure.

Instead, only pass the group identifier. Refer to it as initial group
identifier, as future patches will allow user space to move traps
between groups.

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
drivers/net/netdevsim/dev.c
include/net/devlink.h
net/core/devlink.c