mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
1f024992ef
commit
61a650c14d
2 changed files with 61 additions and 22 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue