Commit 34f065f
committed
mlx5: ignore QP max_recv_wr when SRQ is used
According to the manual, max_recv_wr and max_recv_sge are ignored by
`ibv_create_qp` if the QP is to be associated with an SRQ. Fix the bug
where `ibv_create_qp` may fail due to uninitialized `max_recv_wr`.
Signed-off-by: ZHOU Huaping <[email protected]>1 parent 6fc7569 commit 34f065f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1773 | 1777 | | |
1774 | 1778 | | |
1775 | 1779 | | |
| |||
0 commit comments