summaryrefslogtreecommitdiff
path: root/include/rdma/rdma_vt.h
diff options
context:
space:
mode:
authorHarish Chegondi <harish.chegondi@intel.com>2016-02-03 14:15:20 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:37:32 -0500
commit61a650c14d728354b2d493bed3f1b0531f033dac (patch)
tree9cd5d3bb1324e14d6f391693a13f59e8e2d9991b /include/rdma/rdma_vt.h
parent1f024992ef05d1eb9b3a0becd1611ecfa21854a6 (diff)
IB/rdmavt: Add support for query_port, modify_port and get_port_immutable
rvt_query_port calls into the driver through a call back function query_port_state to populate the rest of ib_port_attr elements. rvt_modify_port calls into the driver if needed through a call back function shut_down_port() Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index dabf4d52b4fc..4242fea9cf4e 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -200,6 +200,8 @@ struct rvt_driver_params {
int psn_mask;
int psn_shift;
int psn_modify_mask;
+ u32 core_cap_flags;
+ u32 max_mad_size;
};
/* Protection domain */
@@ -250,6 +252,10 @@ struct rvt_driver_provided {
int (*mtu_to_path_mtu)(u32 mtu);
int (*get_guid_be)(struct rvt_dev_info *rdi, struct rvt_ibport *rvp,
int guid_index, __be64 *guid);
+ int (*query_port_state)(struct rvt_dev_info *rdi, u8 port_num,
+ struct ib_port_attr *props);
+ int (*shut_down_port)(struct rvt_dev_info *rdi, u8 port_num);
+ void (*cap_mask_chg)(struct rvt_dev_info *rdi, u8 port_num);
/*--------------------*/
/* Optional functions */