diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-10-09 16:59:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-09 20:33:05 +0300 |
commit | bb428a5c4df5f50acdce89449e476faa0b295e95 (patch) | |
tree | 692a2a2e599a46e0265dac77c93a5df4768a5b89 /drivers/net/ethernet/mellanox/mlx4/qp.c | |
parent | acb40d8412572b2a79216a98acdbac10e620da1b (diff) | |
download | linux-bb428a5c4df5f50acdce89449e476faa0b295e95.tar.xz |
net/mlx4: Fix endianness issue in qp context params
Should take care of the endianness before assigning to params2 field.
Fixes: 53f33ae295a5 ("net/mlx4_core: Port aggregation upper layer interface")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/qp.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/qp.c b/drivers/net/ethernet/mellanox/mlx4/qp.c index 728a2fb1f5c0..203320923340 100644 --- a/drivers/net/ethernet/mellanox/mlx4/qp.c +++ b/drivers/net/ethernet/mellanox/mlx4/qp.c @@ -925,7 +925,7 @@ int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, context->flags &= cpu_to_be32(~(0xf << 28)); context->flags |= cpu_to_be32(states[i + 1] << 28); if (states[i + 1] != MLX4_QP_STATE_RTR) - context->params2 &= ~MLX4_QP_BIT_FPP; + context->params2 &= ~cpu_to_be32(MLX4_QP_BIT_FPP); err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1], context, 0, 0, qp); if (err) { |