diff options
author | Hal Rosenstock <halr@voltaire.com> | 2005-07-27 14:45:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:11 -0400 |
commit | 03b61ad2f29295f019e095d0f490f30a4d678d3f (patch) | |
tree | 499d78432420c3fc4339d784940348a9f06010e5 /drivers/infiniband/include/ib_mad.h | |
parent | 2c153b934dca08d58e0aafde18a182e0891aa201 (diff) |
[PATCH] IB: Add ib_modify_mad API to MAD
Add new MAD layer call to modify (ib_modify_mad) the timeout of a sent MAD,
and simplify cancel code.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <halr@voltaire.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/include/ib_mad.h')
-rw-r--r-- | drivers/infiniband/include/ib_mad.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/infiniband/include/ib_mad.h b/drivers/infiniband/include/ib_mad.h index e8a122122cba..c5f3170c59ef 100644 --- a/drivers/infiniband/include/ib_mad.h +++ b/drivers/infiniband/include/ib_mad.h | |||
@@ -385,8 +385,18 @@ void ib_free_recv_mad(struct ib_mad_recv_wc *mad_recv_wc); | |||
385 | * MADs will be returned to the user through the corresponding | 385 | * MADs will be returned to the user through the corresponding |
386 | * ib_mad_send_handler. | 386 | * ib_mad_send_handler. |
387 | */ | 387 | */ |
388 | void ib_cancel_mad(struct ib_mad_agent *mad_agent, | 388 | void ib_cancel_mad(struct ib_mad_agent *mad_agent, u64 wr_id); |
389 | u64 wr_id); | 389 | |
390 | /** | ||
391 | * ib_modify_mad - Modifies an outstanding send MAD operation. | ||
392 | * @mad_agent: Specifies the registration associated with sent MAD. | ||
393 | * @wr_id: Indicates the work request identifier of the MAD to modify. | ||
394 | * @timeout_ms: New timeout value for sent MAD. | ||
395 | * | ||
396 | * This call will reset the timeout value for a sent MAD to the specified | ||
397 | * value. | ||
398 | */ | ||
399 | int ib_modify_mad(struct ib_mad_agent *mad_agent, u64 wr_id, u32 timeout_ms); | ||
390 | 400 | ||
391 | /** | 401 | /** |
392 | * ib_redirect_mad_qp - Registers a QP for MAD services. | 402 | * ib_redirect_mad_qp - Registers a QP for MAD services. |