[ofa-general] Bug in inline sends with sge_num > 0 in libmlx4

Jack Morgenstein jackm at dev.mellanox.co.il
Tue Jul 24 07:04:31 PDT 2007


On Tuesday 24 July 2007 15:14, Gleb Natapov wrote:
> Hi,
> 
>  There is a bug in mlx4_post_send(). A data that is sent inline and
> consists from multiple small sges isn't copied properly into wqe.
> The following patch fixes it for me.
> 
> Signed-off-by: Gleb Natapov <glebn at voltaire.com>
> 
> diff --git a/src/qp.c b/src/qp.c
> index 66ee309..83a4fd4 100644
> --- a/src/qp.c
> +++ b/src/qp.c
> @@ -288,6 +288,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
>  				memcpy(wqe, addr, len);
>  				wqe += len;
>  				seg_len += len;
> +				off += len;
>  			}
>  
>  			if (seg_len) {

Good catch! This patch is correct.
Roland?

- Jack



More information about the general mailing list