On 10/31/2013 01:24 PM, Sagi Grimberg wrote:
> +{
> +     struct ib_mr *sig_mr = wr->wr.sig_handover.sig_mr;
> +     u32 sig_key = sig_mr->rkey;
> +
> +     memset(seg, 0, sizeof(*seg));
> +
> +     seg->status = 0x4; /*set free*/
> +     seg->flags = get_umr_flags(wr->wr.sig_handover.access_flags) |
> +                                MLX5_ACCESS_MODE_KLM;
> +     seg->qpn_mkey7_0 = cpu_to_be32((sig_key & 0xff) | 0xffffff00);
> +     seg->flags_pd = cpu_to_be32(MLX5_MKEY_REMOTE_INVAL |
> +                                 MLX5_MKEY_BSF_EN | pdn);
> +     seg->start_addr = 0;
Already memset, no need to set start_addr here.

Jack

> +     seg->len = cpu_to_be64(length);
> +     seg->xlt_oct_size = cpu_to_be32(be16_to_cpu(get_klm_octo(nelements)));
> +     seg->bsfs_octo_size = cpu_to_be32(MLX5_MKEY_BSF_OCTO_SIZE);
> +}
> +

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to