]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Improve core device events handling
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Nov 2018 22:12:28 +0000 (14:12 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Nov 2018 21:39:34 +0000 (13:39 -0800)
commit75c7a5675f0dd23c18baf188c09f684c1cb1d5ad
tree97e42c8bc61e868b3f44ba77beb610213df65d7d
parent1c3daaa56e9a3cc4f519348d7826f2fd9b7292bd
net/mlx5: Improve core device events handling

Register a separate handler per event type, rather than listening for all
events and looking for the events to handle in a switch case.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/events.c