diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2008-04-17 00:09:33 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:09:33 -0400 |
commit | 3fdcb97f0b8d8a29117dc36acd0b15965d2a2160 (patch) | |
tree | a8bad6e48e9654f10e1b8ebfde3b086d83d2756e /drivers/infiniband/hw/mlx4/cq.c | |
parent | 28d52b3cd8d48ef0ff77d4a8a7a21fc2816bb0a5 (diff) |
IB/mlx4: Add support for modifying CQ moderation parameters
Signed-off-by: Eli Cohen <eli@mellnaox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/cq.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/cq.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/cq.c b/drivers/infiniband/hw/mlx4/cq.c index 7d70af7952b0..e4fb64b118e3 100644 --- a/drivers/infiniband/hw/mlx4/cq.c +++ b/drivers/infiniband/hw/mlx4/cq.c | |||
@@ -85,6 +85,14 @@ static struct mlx4_cqe *next_cqe_sw(struct mlx4_ib_cq *cq) | |||
85 | return get_sw_cqe(cq, cq->mcq.cons_index); | 85 | return get_sw_cqe(cq, cq->mcq.cons_index); |
86 | } | 86 | } |
87 | 87 | ||
88 | int mlx4_ib_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period) | ||
89 | { | ||
90 | struct mlx4_ib_cq *mcq = to_mcq(cq); | ||
91 | struct mlx4_ib_dev *dev = to_mdev(cq->device); | ||
92 | |||
93 | return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period); | ||
94 | } | ||
95 | |||
88 | struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries, int vector, | 96 | struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries, int vector, |
89 | struct ib_ucontext *context, | 97 | struct ib_ucontext *context, |
90 | struct ib_udata *udata) | 98 | struct ib_udata *udata) |