net/mlx4_core: Set correctly allow_loopback flag
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 30 Jan 2013 23:07:03 +0000 (23:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 17:48:46 +0000 (12:48 -0500)
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 <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c

index d7c0704ab54d1db2402dc4095f74299b1dd7fd45..52685524708d3012f09b0ffa586cc82a1d689055 100644 (file)
@@ -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);