]> 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)
commit38b4d3bb5e212f3ddebd35526dac4016ac2c11b3
tree97e42c8bc61e868b3f44ba77beb610213df65d7d
parentfd4a471b1ab56b0793881d49280655c3aed8c270
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