From: Hadar Hen Zion Date: Wed, 30 Jan 2013 23:07:03 +0000 (+0000) Subject: net/mlx4_core: Set correctly allow_loopback flag X-Git-Tag: v3.9-rc1~139^2~198^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=248c62aa12a318fe53bf4f530b69b150c34416e7;p=platform%2Fkernel%2Flinux-stable.git net/mlx4_core: Set correctly allow_loopback flag The allow_loopback flag was wrongly set using arithmetic bit operation, change the code to use logical bit operation. Signed-off-by: Hadar Hen Zion Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c index d7c0704..5268552 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mcg.c +++ b/drivers/net/ethernet/mellanox/mlx4/mcg.c @@ -1157,7 +1157,7 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], .priority = MLX4_DOMAIN_NIC, }; - rule.allow_loopback = ~block_mcast_loopback; + rule.allow_loopback = !block_mcast_loopback; rule.port = port; rule.qpn = qp->qpn; INIT_LIST_HEAD(&rule.list);