[ewg] ***SPAM*** [PATCH]ib/mlx4: block multicast loopback all the time
Ron Livne
ronli at voltaire.com
Sun Sep 7 11:51:49 PDT 2008
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);
More information about the ewg
mailing list