Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efc1eedb authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Doug Ledford
Browse files

IB/ipoib: Fix CONFIG_INFINIBAND_IPOIB_CM



If the above is turned off then ipoib_cm_dev_init unconditionally
returns ENOSYS, and the newly added error handling in
0b3957 prevents ipoib from coming up at all:

kernel: mlx4_0: ipoib_transport_dev_init failed
kernel: mlx4_0: failed to initialize port 1 (ret = -12)

Fixes: 0b39578b (IB/ipoib: Use dedicated workqueues per interface)
Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 49fa63d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -177,6 +177,7 @@ int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca)
		else
			size += ipoib_recvq_size * ipoib_max_conn_qp;
	} else
		if (ret != -ENOSYS)
			goto out_free_wq;

	cq_attr.cqe = size;