[openib-general] [PATCH] process_mad extension

Hal Rosenstock halr at voltaire.com
Mon Jan 10 12:44:04 PST 2005


On Mon, 2005-01-10 at 10:18, Michael S. Tsirkin wrote:

One minor change to mad.c which I just applied:
> @@ -2014,19 +2037,10 @@ static void local_completions(void *data
>  			 * Defined behavior is to complete response
>  			 * before request
>  			 */
> -			wc.wr_id = local->wr_id;
> -			wc.status = IB_WC_SUCCESS;
> -			wc.opcode = IB_WC_RECV;
> -			wc.vendor_err = 0;
> -			wc.byte_len = sizeof(struct ib_mad) +
> -				      sizeof(struct ib_grh);
> -			wc.src_qp = IB_QP0;
> -			wc.wc_flags = 0;	/* No GRH */
> -			wc.pkey_index = 0;
> -			wc.slid = IB_LID_PERMISSIVE;
> -			wc.sl = 0;
> -			wc.dlid_path_bits = 0;
> -			wc.qp_num = IB_QP0;
> +			build_smp_wc(local->wr_id, IB_LID_PERMISSIVE,
> +				     0 /* pkey index */,
> +				     mad_agent_priv->agent.port_num, &wc);
> +
                                       ^^^^^^^^^^^^^^
                                       recv_mad_agent

-- Hal




More information about the general mailing list