Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d4526e0 authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller
Browse files

mlx4_core: remove buggy sched_queue masking



Fixes a bug introduced by commit fe9a2603, where the priority bits
in the schedule queue field were masked out.

Signed-off-by: default avatarAmir Vadai <amirv@mellanox.co.il>
Signed-off-by: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74138511
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -151,11 +151,6 @@ static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
		context->log_page_size   = mtt->page_shift - MLX4_ICM_PAGE_SHIFT;
	}

	port = ((context->pri_path.sched_queue >> 6) & 1) + 1;
	if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH)
		context->pri_path.sched_queue = (context->pri_path.sched_queue &
						0xc3);

	*(__be32 *) mailbox->buf = cpu_to_be32(optpar);
	memcpy(mailbox->buf + 8, context, sizeof *context);