projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7413851
)
mlx4_core: remove buggy sched_queue masking
author
Yevgeny Petrilin
<
[email protected]
>
Tue, 6 Mar 2012 03:05:14 +0000
(
03:05
+0000)
committer
David S. Miller
<
[email protected]
>
Tue, 6 Mar 2012 19:43:50 +0000
(14:43 -0500)
Fixes a bug introduced by commit
fe9a2603c
, where the priority bits
in the schedule queue field were masked out.
Signed-off-by: Amir Vadai <
[email protected]
>
Signed-off-by: Yevgeny Petrilin <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/qp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/qp.c
b/drivers/net/ethernet/mellanox/mlx4/qp.c
index 738f950a1ce59e69c6297517882913d90f22f784..fb2b36759cbf657d66dfa7c245d49306d5a06c58 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/qp.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/qp.c
@@
-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);