commit | 9e9c47d07d447e09a66ee528c3ebad9ba359af6a | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@dev.mellanox.co.il> | Tue Jan 14 17:45:21 2014 +0200 |
committer | Roland Dreier <roland@purestorage.com> | Wed Jan 22 23:23:53 2014 -0800 |
tree | b3bd156928143fe3260c58c550854d1cb716d656 | |
parent | 05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4 [diff] |
IB/mlx5: Allow creation of QPs with zero-length work queues The current code attmepts to call ib_umem_get() even if the length is zero, which causes a failure. Since the spec allows zero length work queues, change the code so we don't call ib_umem_get() in those cases. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>