summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorSaeed Mahameed2015-04-02 16:07:33 +0200
committerDavid S. Miller2015-04-02 22:33:43 +0200
commitce0f75093282c5dca1e79ae3e3e893deaea86166 (patch)
tree4b910c8e93fe66186b58579c9cd5dfcff6da7fad /include/linux/mlx5
parentnet/mlx5_core: Move completion eqs from mlx5_ib to mlx5_core (diff)
downloadkernel-qcow2-linux-ce0f75093282c5dca1e79ae3e3e893deaea86166.tar.gz
kernel-qcow2-linux-ce0f75093282c5dca1e79ae3e3e893deaea86166.tar.xz
kernel-qcow2-linux-ce0f75093282c5dca1e79ae3e3e893deaea86166.zip
net/mlx5_core: Modify arm CQ in preparation for upcoming Ethernet driver
Pass consumer index as a parameter to arm CQ Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/cq.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mlx5/cq.h b/include/linux/mlx5/cq.h
index 72ee0d732a26..2695ced222df 100644
--- a/include/linux/mlx5/cq.h
+++ b/include/linux/mlx5/cq.h
@@ -137,14 +137,15 @@ enum {
static inline void mlx5_cq_arm(struct mlx5_core_cq *cq, u32 cmd,
void __iomem *uar_page,
- spinlock_t *doorbell_lock)
+ spinlock_t *doorbell_lock,
+ u32 cons_index)
{
__be32 doorbell[2];
u32 sn;
u32 ci;
sn = cq->arm_sn & 3;
- ci = cq->cons_index & 0xffffff;
+ ci = cons_index & 0xffffff;
*cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci);