summaryrefslogtreecommitdiff
path: root/include/rdma/rdma_vt.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2016-02-04 01:14:45 +0300
committerDoug Ledford <dledford@redhat.com>2016-03-11 04:37:31 +0300
commit60c30f572595e46c819503b5a8c3a8e2f922de7a (patch)
tree8f30efa7fa7c47b8c67174a61c4c37d3d3abb30e /include/rdma/rdma_vt.h
parentb8f881b913f34f712185b2ff7a41645dcad9a868 (diff)
downloadlinux-60c30f572595e46c819503b5a8c3a8e2f922de7a.tar.xz
IB/rdmavt: Add hardware driver send work request check
Some hardware drivers requires additional checks on send WRs. Create an optional call back to allow hardware drivers to reject a send WR. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_vt.h')
-rw-r--r--include/rdma/rdma_vt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index 1b770650cf60..52dfa9cf8621 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -265,6 +265,8 @@ struct rvt_driver_provided {
void (*modify_qp)(struct rvt_qp *qp, struct ib_qp_attr *attr,
int attr_mask, struct ib_udata *udata);
+ int (*check_send_wr)(struct rvt_qp *qp, struct ib_send_wr *wr);
+
void (*notify_create_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
void (*notify_free_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
};