]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: core: Move functions to register/unregister array of traps to core.c
authorJiri Pirko <jiri@nvidia.com>
Thu, 27 Jan 2022 09:02:23 +0000 (11:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jan 2022 03:19:58 +0000 (19:19 -0800)
commit981f1d18be407d16d1b7fc72ff471fa4586f75e7
treefc9c1e16f26c02a12dc10f414bc6e7dfa766182e
parent8ae89cf454b0496dd75cd9a55910b21bbb2c066e
mlxsw: core: Move functions to register/unregister array of traps to core.c

These functions belong to core.c alongside the functions that
register/unregister a single trap. Move it there. Make the functions
possibly usable by other parts of mlxsw code.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c