IB/core: Move opa_class_port_info definition to header file
Both opa_vnic and the hfi driver use the same opa_classport_info definition. We will also have ib_sa capable of querying opa class port info and would need this definition. Move it to ib_mad.h for everyone to use. Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committato da
Doug Ledford

parent
94d595c560
commit
aa4656d9a4
@@ -1994,31 +1994,6 @@ struct opa_pma_mad {
|
||||
u8 data[2024];
|
||||
} __packed;
|
||||
|
||||
struct opa_class_port_info {
|
||||
u8 base_version;
|
||||
u8 class_version;
|
||||
__be16 cap_mask;
|
||||
__be32 cap_mask2_resp_time;
|
||||
|
||||
u8 redirect_gid[16];
|
||||
__be32 redirect_tc_fl;
|
||||
__be32 redirect_lid;
|
||||
__be32 redirect_sl_qp;
|
||||
__be32 redirect_qkey;
|
||||
|
||||
u8 trap_gid[16];
|
||||
__be32 trap_tc_fl;
|
||||
__be32 trap_lid;
|
||||
__be32 trap_hl_qp;
|
||||
__be32 trap_qkey;
|
||||
|
||||
__be16 trap_pkey;
|
||||
__be16 redirect_pkey;
|
||||
|
||||
u8 trap_sl_rsvd;
|
||||
u8 reserved[3];
|
||||
} __packed;
|
||||
|
||||
struct opa_port_status_req {
|
||||
__u8 port_num;
|
||||
__u8 reserved[3];
|
||||
|
Fai riferimento in un nuovo problema
Block a user