linux-hardened/drivers/net/ethernet/mellanox
Nogah Frankel 0791051c43 mlxsw: core: Create a generic function to register / unregister traps
We have 2 types of HW traps to handle, rx traps and events.
The registration workflow for both is very similar. So it only make
sense to create one function to handle both.

This patch creates a struct to hold the data for both cases. It also
creates a registration and an un-registration functions that get this
generic struct as input.

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>
2016-11-25 21:22:14 -05:00
..
mlx4 mlx4: reorganize struct mlx4_en_tx_ring 2016-11-24 16:03:37 -05:00
mlx5/core net/mlx5: remove a duplicate condition 2016-11-25 20:28:28 -05:00
mlxsw mlxsw: core: Create a generic function to register / unregister traps 2016-11-25 21:22:14 -05:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00