net/mlx4_en: fix a condition
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Feb 2017 09:54:59 +0000 (12:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2017 17:01:06 +0000 (12:01 -0500)
There is a "||" vs "|" typo here so we test 0x1 instead of 0x6.

Fixes: 1f8176f7352a ("net/mlx4_en: Check the enabling pptx/pprx flags in SET_PORT wrapper flow")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c

index 5053c949148f77545a5b917e8eb09d79f133b1df..4e36e287d60567920866a2027a748f1c46fa110d 100644 (file)
@@ -1395,7 +1395,7 @@ static int mlx4_common_set_port(struct mlx4_dev *dev, int slave, u32 in_mod,
                                                          gen_context);
 
                        if (gen_context->flags &
-                           (MLX4_FLAG_V_PPRX_MASK || MLX4_FLAG_V_PPTX_MASK))
+                           (MLX4_FLAG_V_PPRX_MASK | MLX4_FLAG_V_PPTX_MASK))
                                mlx4_en_set_port_global_pause(dev, slave,
                                                              gen_context);