OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a9e161
)
net/mlx5_core: Fix command queue size enforcement
author
Eli Cohen
<eli@dev.mellanox.co.il>
Tue, 2 Dec 2014 10:26:13 +0000
(12:26 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 9 Dec 2014 01:45:54 +0000
(20:45 -0500)
Command queue descriptor page size is 4KB and not the page size used by the
kernel.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
index
368c6c5
..
a285305
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
@@
-1363,7
+1363,7
@@
int mlx5_cmd_init(struct mlx5_core_dev *dev)
goto err_map;
}
- if (cmd->log_sz + cmd->log_stride > PAGE_SHIFT) {
+ if (cmd->log_sz + cmd->log_stride >
MLX5_ADAPTER_
PAGE_SHIFT) {
dev_err(&dev->pdev->dev, "command queue size overflow\n");
err = -EINVAL;
goto err_map;