Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[hermon] Remove an unnecessary check for GID-less transmissions
  • Loading branch information
Michael Brown committed Jul 17, 2009
1 parent cc2e767 commit dd27885
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/drivers/infiniband/hermon.c
Expand Up @@ -1009,11 +1009,6 @@ static void hermon_destroy_qp ( struct ib_device *ibdev,
***************************************************************************
*/

/** GID used for GID-less send work queue entries */
static const struct ib_gid hermon_no_gid = {
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
};

/**
* Post send work queue entry
*
Expand All @@ -1032,7 +1027,6 @@ static int hermon_post_send ( struct ib_device *ibdev,
struct ib_work_queue *wq = &qp->send;
struct hermon_send_work_queue *hermon_send_wq = &hermon_qp->send;
struct hermonprm_ud_send_wqe *wqe;
const struct ib_gid *gid;
union hermonprm_doorbell_register db_reg;
unsigned int wqe_idx_mask;

Expand Down Expand Up @@ -1062,8 +1056,7 @@ static int hermon_post_send ( struct ib_device *ibdev,
( ( ( av->rate < 2 ) || ( av->rate > 10 ) ) ?
8 : ( av->rate + 5 ) ) );
MLX_FILL_1 ( &wqe->ud, 3, ud_address_vector.sl, av->sl );
gid = ( av->gid_present ? &av->gid : &hermon_no_gid );
memcpy ( &wqe->ud.u.dwords[4], gid, sizeof ( *gid ) );
memcpy ( &wqe->ud.u.dwords[4], &av->gid, sizeof ( av->gid ) );
MLX_FILL_1 ( &wqe->ud, 8, destination_qp, av->qpn );
MLX_FILL_1 ( &wqe->ud, 9, q_key, av->qkey );
MLX_FILL_1 ( &wqe->data[0], 0, byte_count, iob_len ( iobuf ) );
Expand Down

0 comments on commit dd27885

Please sign in to comment.