mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
net/mlx5: Fix typo of MLX5_EQ_DOORBEL_OFFSET
[ Upstream commit917449e7c3] Also convert it to a simple define. Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of:e5eba42f01("mlx5: Fix default values in create CQ") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
385118707a
commit
13d4d596be
@@ -32,9 +32,7 @@ enum {
|
||||
MLX5_EQ_STATE_ALWAYS_ARMED = 0xb,
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_EQ_DOORBEL_OFFSET = 0x40,
|
||||
};
|
||||
#define MLX5_EQ_DOORBELL_OFFSET 0x40
|
||||
|
||||
/* budget must be smaller than MLX5_NUM_SPARE_EQE to guarantee that we update
|
||||
* the ci before we polled all the entries in the EQ. MLX5_NUM_SPARE_EQE is
|
||||
@@ -322,7 +320,7 @@ create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq,
|
||||
eq->eqn = MLX5_GET(create_eq_out, out, eq_number);
|
||||
eq->irqn = pci_irq_vector(dev->pdev, vecidx);
|
||||
eq->dev = dev;
|
||||
eq->doorbell = priv->uar->map + MLX5_EQ_DOORBEL_OFFSET;
|
||||
eq->doorbell = priv->uar->map + MLX5_EQ_DOORBELL_OFFSET;
|
||||
|
||||
err = mlx5_debug_eq_add(dev, eq);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user