Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177121
b: refs/heads/master
c: d14152d
h: refs/heads/master
i:
  177119: 22762f3
v: v3
  • Loading branch information
Chien Tung authored and Roland Dreier committed Dec 9, 2009
1 parent b2cf3b5 commit c89c29d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a276510328d0721c252b37044c51e2fb4efe0364
refs/heads/master: d14152da13dc29aa70cddd8ca214a13e3597eb7f
6 changes: 4 additions & 2 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,8 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
return ERR_PTR(-EINVAL);
}

nesqp->sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR);

/* update the QP table */
nesdev->nesadapter->qp_table[nesqp->hwqp.qp_id-NES_FIRST_QPN] = nesqp;
nes_debug(NES_DBG_QP, "netdev refcnt=%u\n",
Expand Down Expand Up @@ -3502,9 +3504,9 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
if (err)
break;

if (ib_wr->send_flags & IB_SEND_SIGNALED) {
if ((ib_wr->send_flags & IB_SEND_SIGNALED) || nesqp->sig_all)
wqe_misc |= NES_IWARP_SQ_WQE_SIGNALED_COMPL;
}

wqe->wqe_words[NES_IWARP_SQ_WQE_MISC_IDX] = cpu_to_le32(wqe_misc);

ib_wr = ib_wr->next;
Expand Down
15 changes: 9 additions & 6 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,20 @@ struct nes_qp {
enum ib_event_type terminate_eventtype;
wait_queue_head_t kick_waitq;
u16 in_disconnect;
u16 active_conn:1;
u16 skip_lsmm:1;
u16 user_mode:1;
u16 hte_added:1;
u16 flush_issued:1;
u16 destroyed:1;
u16 sq_kmapped:1;
u16 sig_all:1;
u16 rsvd:8;
u16 private_data_len;
u16 term_sq_flush_code;
u16 term_rq_flush_code;
u8 active_conn;
u8 skip_lsmm;
u8 user_mode;
u8 hte_added;
u8 hw_iwarp_state;
u8 flush_issued;
u8 hw_tcp_state;
u8 term_flags;
u8 destroyed;
};
#endif /* NES_VERBS_H */

0 comments on commit c89c29d

Please sign in to comment.