diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-01-31 03:07:03 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-31 21:48:46 +0400 |
commit | 248c62aa12a318fe53bf4f530b69b150c34416e7 (patch) | |
tree | e5867de8102b81cecf9cb1b6b6d71a725ee4c2bf /drivers/net/ethernet/mellanox/mlx4/mcg.c | |
parent | 015465f85193fdc3a0debb1c9176433ba19140b2 (diff) | |
download | linux-248c62aa12a318fe53bf4f530b69b150c34416e7.tar.xz |
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 <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mcg.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mcg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c index d7c0704ab54d..52685524708d 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); |