diff options
author | Michael Brown | 2012-08-31 02:48:49 +0200 |
---|---|---|
committer | Michael Brown | 2012-08-31 22:22:58 +0200 |
commit | f54a61e43450fae7d045bebabc4c368d325e71d3 (patch) | |
tree | 4da3e1ff7629e7d06b7a62a9fce592a5baeee794 /src/net/infiniband.c | |
parent | [infiniband] Use explicit "source" and "dest" address vector parameter names (diff) | |
download | ipxe-f54a61e43450fae7d045bebabc4c368d325e71d3.tar.gz ipxe-f54a61e43450fae7d045bebabc4c368d325e71d3.tar.xz ipxe-f54a61e43450fae7d045bebabc4c368d325e71d3.zip |
[infiniband] Include destination address vector in ib_complete_recv()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/infiniband.c')
-rw-r--r-- | src/net/infiniband.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/infiniband.c b/src/net/infiniband.c index f50778d0..12d1d83c 100644 --- a/src/net/infiniband.c +++ b/src/net/infiniband.c @@ -304,7 +304,7 @@ void ib_destroy_qp ( struct ib_device *ibdev, struct ib_queue_pair *qp ) { } for ( i = 0 ; i < qp->recv.num_wqes ; i++ ) { if ( ( iobuf = qp->recv.iobufs[i] ) != NULL ) { - ib_complete_recv ( ibdev, qp, NULL, iobuf, + ib_complete_recv ( ibdev, qp, NULL, NULL, iobuf, -ECANCELED ); } } @@ -486,16 +486,19 @@ void ib_complete_send ( struct ib_device *ibdev, struct ib_queue_pair *qp, * * @v ibdev Infiniband device * @v qp Queue pair + * @v dest Destination address vector, or NULL * @v source Source address vector, or NULL * @v iobuf I/O buffer * @v rc Completion status code */ void ib_complete_recv ( struct ib_device *ibdev, struct ib_queue_pair *qp, + struct ib_address_vector *dest, struct ib_address_vector *source, struct io_buffer *iobuf, int rc ) { if ( qp->recv.cq->op->complete_recv ) { - qp->recv.cq->op->complete_recv ( ibdev, qp, source, iobuf, rc ); + qp->recv.cq->op->complete_recv ( ibdev, qp, dest, source, + iobuf, rc ); } else { free_iob ( iobuf ); } |