]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Change emad trap group settings
authorNogah Frankel <nogahf@mellanox.com>
Fri, 25 Nov 2016 09:33:40 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:14 +0000 (21:22 -0500)
commitcd53d010c472f856f60644d8b54d53ff1b58b549
tree290ae3a750c84d756d6ad748b1d0cfe8a74ab308
parentde2795c6a63d26d7b0ee40bcf54edf4ec37b806c
mlxsw: core: Change emad trap group settings

Currently, the emad trap init was done in the core. In the future we will
want to add some changes to the traps groups, according to device type.
This commit create a driver function to create the trap group for the
emad, so later it can be changed by devices. It also changes the emad
registration to use the new generic functions.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/switchib.c
drivers/net/ethernet/mellanox/mlxsw/switchx2.c