On 10/12/2015 9:57 AM, Christoph Hellwig wrote:
This patch gets rid of struct ib_device_attr and cleans up drivers nicely.
It goes on top of my send_wr cleanups and the memory registration udpates
from Sagi.
Changes since V1:
- rebased on top of the Sagi's latest reg_api.6 branch
Christoph,
First go with this looks OK for mlx4. mlx5 needs the below incremental
patch to be folded in.
we need dev->ib_dev.max_pkeys set when get_port_caps() is called.
--
diff --git a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5/main.c
index 67b979f..5b73322 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -1321,6 +1321,10 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
dev->mdev = mdev;
+ err = mlx5_ib_init_device_flags(&dev->ib_dev);
+ if (err)
+ goto err_dealloc;
+
err = get_port_caps(dev);
if (err)
goto err_dealloc;
@@ -1433,10 +1437,6 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
if (err)
goto err_rsrc;
- err = mlx5_ib_init_device_flags(&dev->ib_dev);
- if (err)
- goto err_rsrc;
-
err = ib_register_device(&dev->ib_dev, NULL);
if (err)
goto err_odp;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html