diff options
| -rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index 7f39af44b274..190c1dc0ee27 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c | |||
| @@ -1556,8 +1556,8 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, | |||
| 1556 | } | 1556 | } |
| 1557 | 1557 | ||
| 1558 | wqe += sizeof (struct mthca_atomic_seg); | 1558 | wqe += sizeof (struct mthca_atomic_seg); |
| 1559 | size += sizeof (struct mthca_raddr_seg) / 16 + | 1559 | size += (sizeof (struct mthca_raddr_seg) + |
| 1560 | sizeof (struct mthca_atomic_seg); | 1560 | sizeof (struct mthca_atomic_seg)) / 16; |
| 1561 | break; | 1561 | break; |
| 1562 | 1562 | ||
| 1563 | case IB_WR_RDMA_WRITE: | 1563 | case IB_WR_RDMA_WRITE: |
| @@ -1876,8 +1876,8 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, | |||
| 1876 | } | 1876 | } |
| 1877 | 1877 | ||
| 1878 | wqe += sizeof (struct mthca_atomic_seg); | 1878 | wqe += sizeof (struct mthca_atomic_seg); |
| 1879 | size += sizeof (struct mthca_raddr_seg) / 16 + | 1879 | size += (sizeof (struct mthca_raddr_seg) + |
| 1880 | sizeof (struct mthca_atomic_seg); | 1880 | sizeof (struct mthca_atomic_seg)) / 16; |
| 1881 | break; | 1881 | break; |
| 1882 | 1882 | ||
| 1883 | case IB_WR_RDMA_READ: | 1883 | case IB_WR_RDMA_READ: |
