IB/mlx5: Enable IPoIB acceleration
authorErez Shitrit <erezsh@mellanox.com>
Thu, 27 Apr 2017 14:01:34 +0000 (17:01 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 May 2017 20:22:08 +0000 (16:22 -0400)
commit693dfd5a3f19efc44acf3a57217c0480e414f8ee
tree0e008558a92587f41e3a56ba26ef9ad85f2005e6
parent4ac4d584886a4f47f8ff3bca0f32ff9a2987d3e5
IB/mlx5: Enable IPoIB acceleration

Enable mlx5 IPoIB acceleration by declaring
mlx5_ib_{alloc,free}_rdma_netdev and assigning the mlx5
IPoIB rdma_netdev callbacks.

In addition, this patch brings in sync mlx5's IPoIB parts for net and IB
trees. As a precaution, we disabled IPoIB acceleration by default (in
the mlx5_core Kconfig file).

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/Kconfig
drivers/net/ethernet/mellanox/mlx5/core/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib.h
include/linux/mlx5/driver.h