]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Refactor registration to netdev notifier
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 27 Nov 2016 14:51:34 +0000 (16:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:48 +0000 (13:39 -0500)
commitae8cebac36f50126f52208301e5f4e891246a1e3
treec2eccf8c8519ea12acd97fd3785d3c93db865538
parentaf5df85634710075e385cac6196cf6f5a5ca0fa7
IB/mlx5: Refactor registration to netdev notifier

Refactor the netdev notifier registration into a small helper function.

This is a pre-step towards having mlx5 IB device over an Ethernet port
which doesn't support RoCE. Also, renamed the de-registration helper
and the new helper as netdev notifier and not roce, to make it clear
this is not only used with roce.

This patch doesn't change any functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c