diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2008-04-17 06:09:33 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 06:09:33 +0200 |
commit | 2dd5716227878d5950988514a2cbabf72f7fc888 (patch) | |
tree | cd999c4f9bcf1bb1f54fc6b91fac7d16552a930e /drivers | |
parent | IPoIB: Add basic ethtool support (diff) | |
download | linux-2dd5716227878d5950988514a2cbabf72f7fc888.tar.xz linux-2dd5716227878d5950988514a2cbabf72f7fc888.zip |
IB/core: Add support for modify CQ
Add support for modifying CQ parameters for controlling event
generation moderation.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/verbs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index 8ffb5f2c21f7..05042089de6e 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -630,6 +630,13 @@ struct ib_cq *ib_create_cq(struct ib_device *device, } EXPORT_SYMBOL(ib_create_cq); +int ib_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period) +{ + return cq->device->modify_cq ? + cq->device->modify_cq(cq, cq_count, cq_period) : -ENOSYS; +} +EXPORT_SYMBOL(ib_modify_cq); + int ib_destroy_cq(struct ib_cq *cq) { if (atomic_read(&cq->usecnt)) |