Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5207
b: refs/heads/master
c: f8197a4
h: refs/heads/master
i:
  5205: 986a611
  5203: 99b084f
  5199: 2b3592c
v: v3
  • Loading branch information
Hal Rosenstock authored and Linus Torvalds committed Jul 27, 2005
1 parent 620e9df commit 3666842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 4a0754fae8fb5162d1cf4f738d48bb1e8190c09f
refs/heads/master: f8197a4ed1bba8c80ed6ddf4535ded80cb4152cf
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/core/mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,8 @@ static int ib_send_mad(struct ib_mad_agent_private *mad_agent_priv,
unsigned long flags;
int ret;

/* Replace user's WR ID with our own to find WR upon completion */
/* Set WR ID to find mad_send_wr upon completion */
qp_info = mad_agent_priv->qp_info;
mad_send_wr->wr_id = mad_send_wr->send_wr.wr_id;
mad_send_wr->send_wr.wr_id = (unsigned long)&mad_send_wr->mad_list;
mad_send_wr->mad_list.mad_queue = &qp_info->send_queue;

Expand Down Expand Up @@ -948,6 +947,7 @@ int ib_post_send_mad(struct ib_mad_agent *mad_agent,
mad_send_wr->send_wr.sg_list = mad_send_wr->sg_list;
memcpy(mad_send_wr->sg_list, send_wr->sg_list,
sizeof *send_wr->sg_list * send_wr->num_sge);
mad_send_wr->wr_id = mad_send_wr->send_wr.wr_id;
mad_send_wr->send_wr.next = NULL;
mad_send_wr->tid = send_wr->wr.ud.mad_hdr->tid;
mad_send_wr->agent = mad_agent;
Expand Down

0 comments on commit 3666842

Please sign in to comment.