diff options
Diffstat (limited to 'drivers/net/mlx4/en_netdev.c')
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index 61850adae6f7..aa6e73e7b6bb 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c | |||
@@ -239,7 +239,8 @@ static void mlx4_en_do_set_multicast(struct work_struct *work) | |||
239 | priv->flags |= MLX4_EN_FLAG_PROMISC; | 239 | priv->flags |= MLX4_EN_FLAG_PROMISC; |
240 | 240 | ||
241 | /* Enable promiscouos mode */ | 241 | /* Enable promiscouos mode */ |
242 | if (!mdev->dev->caps.vep_uc_steering) | 242 | if (!(mdev->dev->caps.flags & |
243 | MLX4_DEV_CAP_FLAG_VEP_UC_STEER)) | ||
243 | err = mlx4_SET_PORT_qpn_calc(mdev->dev, priv->port, | 244 | err = mlx4_SET_PORT_qpn_calc(mdev->dev, priv->port, |
244 | priv->base_qpn, 1); | 245 | priv->base_qpn, 1); |
245 | else | 246 | else |
@@ -285,7 +286,7 @@ static void mlx4_en_do_set_multicast(struct work_struct *work) | |||
285 | priv->flags &= ~MLX4_EN_FLAG_PROMISC; | 286 | priv->flags &= ~MLX4_EN_FLAG_PROMISC; |
286 | 287 | ||
287 | /* Disable promiscouos mode */ | 288 | /* Disable promiscouos mode */ |
288 | if (!mdev->dev->caps.vep_uc_steering) | 289 | if (!(mdev->dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_UC_STEER)) |
289 | err = mlx4_SET_PORT_qpn_calc(mdev->dev, priv->port, | 290 | err = mlx4_SET_PORT_qpn_calc(mdev->dev, priv->port, |
290 | priv->base_qpn, 0); | 291 | priv->base_qpn, 0); |
291 | else | 292 | else |