[ewg] Re: [PATCH]ib/mlx4: block multicast loopback all the time

Vladimir Sokolovsky vlad at mellanox.co.il
Sun Sep 7 09:30:54 PDT 2008


On Sun, 2008-09-07 at 18:51 +0000, Ron Livne wrote:
> Vlad,
> This patch should be applied after the patch:
> mlx4_0290_mcast_loopback.patch
> 
> This patch makes the mcast loopback packets to be blocked
> all the time, no matter what the parameter block_mcast_loopback was.
> 
> Signed-off-by: Ron Livne <ronli at voltaire.com>
> 
> diff --git a/drivers/net/mlx4/mcg.c b/drivers/net/mlx4/mcg.c
> index 3be3ca6..ad62dca 100644
> --- a/drivers/net/mlx4/mcg.c
> +++ b/drivers/net/mlx4/mcg.c
> @@ -213,11 +213,8 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
>  			goto out;
>  		}
> 
> -	if (block_mcast_loopback)
> -		mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) |
> -						       (!!mlx4_blck_lb << MGM_BLCK_LB_BIT));
> -	else
> -		mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK);
> +	mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) |
> +					       (!!mlx4_blck_lb << MGM_BLCK_LB_BIT));
> 
>  	mgm->members_count       = cpu_to_be32(members_count);
> 

Hi Ron,
I updated mlx4_0290_mcast_loopback.patch instead of adding one more
patch.

Regards,
Vladimir




More information about the ewg mailing list