aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/en_port.c
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.co.il>2010-10-21 12:39:08 -0700
committerRoland Dreier <rolandd@cisco.com>2010-10-25 10:20:39 -0700
commit7ac870ed7d2316587ec06747c28cb9f44f67997d (patch)
tree61de0d5744ef60798745842885b3afdd9ecf88ac /drivers/net/mlx4/en_port.c
parent96dfa684c85d24b697f865f37a4f0c8678fc86e9 (diff)
downloadkernel_samsung_tuna-7ac870ed7d2316587ec06747c28cb9f44f67997d.zip
kernel_samsung_tuna-7ac870ed7d2316587ec06747c28cb9f44f67997d.tar.gz
kernel_samsung_tuna-7ac870ed7d2316587ec06747c28cb9f44f67997d.tar.bz2
mlx4_en: Change multicast promiscuous mode to support IBoE
Change multicast promiscuous mode to pass packets through the multicast group distribution table before sending packets that miss to the default multicast QP. Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/net/mlx4/en_port.c')
-rw-r--r--drivers/net/mlx4/en_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_port.c b/drivers/net/mlx4/en_port.c
index a29abe8..a249887 100644
--- a/drivers/net/mlx4/en_port.c
+++ b/drivers/net/mlx4/en_port.c
@@ -127,8 +127,8 @@ int mlx4_SET_PORT_qpn_calc(struct mlx4_dev *dev, u8 port, u32 base_qpn,
memset(context, 0, sizeof *context);
context->base_qpn = cpu_to_be32(base_qpn);
- context->promisc = cpu_to_be32(promisc << SET_PORT_PROMISC_SHIFT | base_qpn);
- context->mcast = cpu_to_be32(1 << SET_PORT_PROMISC_SHIFT | base_qpn);
+ context->promisc = cpu_to_be32(promisc << SET_PORT_PROMISC_EN_SHIFT | base_qpn);
+ context->mcast = cpu_to_be32(1 << SET_PORT_PROMISC_MODE_SHIFT | base_qpn);
context->intra_no_vlan = 0;
context->no_vlan = MLX4_NO_VLAN_IDX;
context->intra_vlan_miss = 0;