diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-12-02 12:26:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-08 20:45:54 -0500 |
commit | 2d446d18aa09f16aef9e34774c4fcbc8a84a923e (patch) | |
tree | 0cc622241f63df1e7ea1862aa199a6097a11e486 /drivers/net/ethernet/mellanox/mlx5/core | |
parent | 3a9e161a59b29b3aa2f39446b26622867322bf2b (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c index 368c6c5ea014..a2853057c779 100644 --- 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; |