components/open-fabrics/libibverbs/patches/base.patch
branchs11-update
changeset 2448 c1b40b77a1ae
parent 869 ab908b713ec5
child 2532 5b3dc1c8b85e
equal deleted inserted replaced
2446:aabe313bb2a2 2448:c1b40b77a1ae
   168 -returns the Global Unique IDentifier (GUID) of the RDMA device
   168 -returns the Global Unique IDentifier (GUID) of the RDMA device
   169 +returns the Global Unique IDentifier (GUID) of the InfiniBand device
   169 +returns the Global Unique IDentifier (GUID) of the InfiniBand device
   170  .I device\fR.
   170  .I device\fR.
   171  .SH "RETURN VALUE"
   171  .SH "RETURN VALUE"
   172  .B ibv_get_device_guid()
   172  .B ibv_get_device_guid()
       
   173 diff -r -u /tmp/846623/libibverbs-1.1.4/man/ibv_post_send.3 libibverbs-1.1.4/man/ibv_post_send.3
       
   174 --- /tmp/846623/libibverbs-1.1.4/man/ibv_post_send.3	Thu Mar 10 06:58:20 2011
       
   175 +++ libibverbs-1.1.4/man/ibv_post_send.3	Wed Dec  5 15:44:51 2012
       
   176 @@ -91,14 +91,17 @@
       
   177  The attribute send_flags describes the properties of the \s-1WR\s0. It is either 0 or the bitwise \s-1OR\s0 of one or more of the following flags:
       
   178  .PP
       
   179  .TP
       
   180 -.B IBV_SEND_FENCE \fR Set the fence indicator.  Valid only for QPs with Transport Service Type \fBIBV_QPT_RC
       
   181 +.B IBV_SEND_FENCE \fR
       
   182 +Set the fence indicator.  Valid only for QPs with Transport Service Type \fBIBV_QPT_RC
       
   183  .TP
       
   184 -.B IBV_SEND_SIGNALED \fR Set the completion notification indicator.  Relevant only if QP was created with sq_sig_all=0
       
   185 +.B IBV_SEND_SIGNALED \fR
       
   186 +Set the completion notification indicator.  Relevant only if QP was created with sq_sig_all=0
       
   187  .TP
       
   188 -.B IBV_SEND_SOLICITED \fR Set the solicited event indicator.  Valid only for Send and RDMA Write with immediate
       
   189 +.B IBV_SEND_SOLICITED \fR
       
   190 +Set the solicited event indicator.  Valid only for Send and RDMA Write with immediate
       
   191  .TP
       
   192 -.B IBV_SEND_INLINE \fR Send data in given gather list as inline data
       
   193 -in a send WQE.  Valid only for Send and RDMA Write.  The L_Key will not be checked.
       
   194 +.B IBV_SEND_INLINE \fR
       
   195 +Send data in given gather list as inline data in a send WQE.  Valid only for Send and RDMA Write.  The L_Key will not be checked.
       
   196  .SH "RETURN VALUE"
       
   197  .B ibv_post_send()
       
   198  returns 0 on success, or the value of errno on failure (which indicates the failure reason).
   173 diff -r -u /tmp/846623/libibverbs-1.1.4/man/ibv_alloc_pd.3 libibverbs-1.1.4/man/ibv_alloc_pd.3
   199 diff -r -u /tmp/846623/libibverbs-1.1.4/man/ibv_alloc_pd.3 libibverbs-1.1.4/man/ibv_alloc_pd.3
   174 --- /tmp/846623/libibverbs-1.1.4/man/ibv_alloc_pd.3	Thu Mar 10 04:51:46 2011
   200 --- /tmp/846623/libibverbs-1.1.4/man/ibv_alloc_pd.3	Thu Mar 10 04:51:46 2011
   175 +++ libibverbs-1.1.4/man/ibv_alloc_pd.3	Mon Mar 28 03:11:45 2011
   201 +++ libibverbs-1.1.4/man/ibv_alloc_pd.3	Mon Mar 28 03:11:45 2011
   176 @@ -13,7 +13,7 @@
   202 @@ -13,7 +13,7 @@
   177  .fi
   203  .fi
   965  	cmd->comp_channel  = channel ? channel->fd : -1;
   991  	cmd->comp_channel  = channel ? channel->fd : -1;
   966 +#endif
   992 +#endif
   967  	cmd->reserved      = 0;
   993  	cmd->reserved      = 0;
   968  
   994  
   969  	if (write(context->cmd_fd, cmd, cmd_size) != cmd_size)
   995  	if (write(context->cmd_fd, cmd, cmd_size) != cmd_size)
   970 @@ -637,7 +808,19 @@
   996 @@ -637,7 +808,20 @@
   971  	cmd->max_send_sge    = attr->cap.max_send_sge;
   997  	cmd->max_send_sge    = attr->cap.max_send_sge;
   972  	cmd->max_recv_sge    = attr->cap.max_recv_sge;
   998  	cmd->max_recv_sge    = attr->cap.max_recv_sge;
   973  	cmd->max_inline_data = attr->cap.max_inline_data;
   999  	cmd->max_inline_data = attr->cap.max_inline_data;
   974 +
  1000 +
   975 +#if defined(__SVR4) && defined(__sun)
  1001 +#if defined(__SVR4) && defined(__sun)
   976 +	if (attr->sq_sig_all & LIB_RDMACM_QP_BIT) {
  1002 +	if (attr->sq_sig_all & LIB_RDMACM_QP_BIT) {
   977 +		cmd->sq_sig_all =
  1003 +		cmd->sq_sig_all =
   978 +		    (uint8_t)(attr->sq_sig_all & ~LIB_RDMACM_QP_BIT);
  1004 +		    (uint8_t)(attr->sq_sig_all & ~LIB_RDMACM_QP_BIT);
   979 +		cmd->sq_sig_all |= 0x80;
  1005 +		cmd->sq_sig_all |= 0x80;
       
  1006 +		attr->sq_sig_all &= ~LIB_RDMACM_QP_BIT;
   980 +	} else {
  1007 +	} else {
   981 +		cmd->sq_sig_all = (uint8_t)attr->sq_sig_all;
  1008 +		cmd->sq_sig_all = (uint8_t)attr->sq_sig_all;
   982 +	}
  1009 +	}
   983 +#else
  1010 +#else
   984  	cmd->sq_sig_all	     = attr->sq_sig_all;
  1011  	cmd->sq_sig_all	     = attr->sq_sig_all;
   985 +#endif
  1012 +#endif
   986 +
  1013 +
   987  	cmd->qp_type 	     = attr->qp_type;
  1014  	cmd->qp_type 	     = attr->qp_type;
   988  	cmd->is_srq 	     = !!attr->srq;
  1015  	cmd->is_srq 	     = !!attr->srq;
   989  	cmd->srq_handle      = attr->qp_type == IBV_QPT_XRC ?
  1016  	cmd->srq_handle      = attr->qp_type == IBV_QPT_XRC ?
   990 @@ -1406,4 +1589,3 @@
  1017 @@ -1406,4 +1590,3 @@
   991  		return errno;
  1018  		return errno;
   992  	return 0;
  1019  	return 0;
   993  }
  1020  }
   994 -
  1021 -
   995 diff -r -u /tmp/846623/libibverbs-1.1.4/src/init.c libibverbs-1.1.4/src/init.c
  1022 diff -r -u /tmp/846623/libibverbs-1.1.4/src/init.c libibverbs-1.1.4/src/init.c