]> 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)
commit9159c2a93d9cd5a71c125cfe17a65569c431cee6
treeca77a17a3fe462965cdee934fa5ac00d4d53147d
parent052b02d73d651520ae1c37e35b61085347ae844a
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