~ubuntu-branches/ubuntu/raring/ipxe/raring

« back to all changes in this revision

Viewing changes to src/net/infiniband/ib_cmrc.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-11-14 15:47:31 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20121114154731-jhuy5d1h2jw75qe9
Tags: 1.0.0+git-4.d6b0b76-0ubuntu1
* New upstream snapshot:
  - d/p/iscsi*.patch: Dropped - included in snapshot.
  - Refreshed all other patches.
* d/p/enable-https.patch: Enable HTTPS support (LP: #1025239).

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
 *
221
221
 * @v ibdev             Infiniband device
222
222
 * @v qp                Queue pair
223
 
 * @v av                Address vector, or NULL
 
223
 * @v dest              Destination address vector, or NULL
 
224
 * @v source            Source address vector, or NULL
224
225
 * @v iobuf             I/O buffer
225
226
 * @v rc                Completion status code
226
227
 */
227
228
static void ib_cmrc_complete_recv ( struct ib_device *ibdev __unused,
228
229
                                    struct ib_queue_pair *qp,
229
 
                                    struct ib_address_vector *av __unused,
 
230
                                    struct ib_address_vector *dest __unused,
 
231
                                    struct ib_address_vector *source __unused,
230
232
                                    struct io_buffer *iobuf, int rc ) {
231
233
        struct ib_cmrc_connection *cmrc = ib_qp_get_ownerdata ( qp );
232
234
 
257
259
        .complete_recv = ib_cmrc_complete_recv,
258
260
};
259
261
 
 
262
/** Infiniband CMRC queue pair operations */
 
263
static struct ib_queue_pair_operations ib_cmrc_queue_pair_ops = {
 
264
        .alloc_iob = alloc_iob,
 
265
};
 
266
 
260
267
/**
261
268
 * Send data via CMRC
262
269
 *
410
417
 
411
418
        /* Create queue pair */
412
419
        cmrc->qp = ib_create_qp ( ibdev, IB_QPT_RC, IB_CMRC_NUM_SEND_WQES,
413
 
                                  cmrc->cq, IB_CMRC_NUM_RECV_WQES, cmrc->cq );
 
420
                                  cmrc->cq, IB_CMRC_NUM_RECV_WQES, cmrc->cq,
 
421
                                  &ib_cmrc_queue_pair_ops );
414
422
        if ( ! cmrc->qp ) {
415
423
                DBGC ( cmrc, "CMRC %p could not create queue pair\n", cmrc );
416
424
                rc = -ENOMEM;