mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
net/mlx5_core: Fix command queue size enforcement
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>
This commit is contained in:
parent
3a9e161a59
commit
2d446d18aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user