diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_mad.h')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_mad.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/qib/qib_mad.h b/drivers/infiniband/hw/qib/qib_mad.h index 28874f8606f8..941d4d50d8e7 100644 --- a/drivers/infiniband/hw/qib/qib_mad.h +++ b/drivers/infiniband/hw/qib/qib_mad.h | |||
@@ -54,7 +54,7 @@ struct ib_node_info { | |||
54 | __be32 revision; | 54 | __be32 revision; |
55 | u8 local_port_num; | 55 | u8 local_port_num; |
56 | u8 vendor_id[3]; | 56 | u8 vendor_id[3]; |
57 | } __attribute__ ((packed)); | 57 | } __packed; |
58 | 58 | ||
59 | struct ib_mad_notice_attr { | 59 | struct ib_mad_notice_attr { |
60 | u8 generic_type; | 60 | u8 generic_type; |
@@ -73,7 +73,7 @@ struct ib_mad_notice_attr { | |||
73 | __be16 reserved; | 73 | __be16 reserved; |
74 | __be16 lid; /* where violation happened */ | 74 | __be16 lid; /* where violation happened */ |
75 | u8 port_num; /* where violation happened */ | 75 | u8 port_num; /* where violation happened */ |
76 | } __attribute__ ((packed)) ntc_129_131; | 76 | } __packed ntc_129_131; |
77 | 77 | ||
78 | struct { | 78 | struct { |
79 | __be16 reserved; | 79 | __be16 reserved; |
@@ -83,14 +83,14 @@ struct ib_mad_notice_attr { | |||
83 | __be32 new_cap_mask; /* new capability mask */ | 83 | __be32 new_cap_mask; /* new capability mask */ |
84 | u8 reserved3; | 84 | u8 reserved3; |
85 | u8 change_flags; /* low 3 bits only */ | 85 | u8 change_flags; /* low 3 bits only */ |
86 | } __attribute__ ((packed)) ntc_144; | 86 | } __packed ntc_144; |
87 | 87 | ||
88 | struct { | 88 | struct { |
89 | __be16 reserved; | 89 | __be16 reserved; |
90 | __be16 lid; /* lid where sys guid changed */ | 90 | __be16 lid; /* lid where sys guid changed */ |
91 | __be16 reserved2; | 91 | __be16 reserved2; |
92 | __be64 new_sys_guid; | 92 | __be64 new_sys_guid; |
93 | } __attribute__ ((packed)) ntc_145; | 93 | } __packed ntc_145; |
94 | 94 | ||
95 | struct { | 95 | struct { |
96 | __be16 reserved; | 96 | __be16 reserved; |
@@ -104,7 +104,7 @@ struct ib_mad_notice_attr { | |||
104 | u8 reserved3; | 104 | u8 reserved3; |
105 | u8 dr_trunc_hop; | 105 | u8 dr_trunc_hop; |
106 | u8 dr_rtn_path[30]; | 106 | u8 dr_rtn_path[30]; |
107 | } __attribute__ ((packed)) ntc_256; | 107 | } __packed ntc_256; |
108 | 108 | ||
109 | struct { | 109 | struct { |
110 | __be16 reserved; | 110 | __be16 reserved; |
@@ -115,7 +115,7 @@ struct ib_mad_notice_attr { | |||
115 | __be32 qp2; /* high 8 bits reserved */ | 115 | __be32 qp2; /* high 8 bits reserved */ |
116 | union ib_gid gid1; | 116 | union ib_gid gid1; |
117 | union ib_gid gid2; | 117 | union ib_gid gid2; |
118 | } __attribute__ ((packed)) ntc_257_258; | 118 | } __packed ntc_257_258; |
119 | 119 | ||
120 | } details; | 120 | } details; |
121 | }; | 121 | }; |
@@ -209,7 +209,7 @@ struct ib_pma_portcounters_cong { | |||
209 | __be64 port_rcv_packets; | 209 | __be64 port_rcv_packets; |
210 | __be64 port_xmit_wait; | 210 | __be64 port_xmit_wait; |
211 | __be64 port_adr_events; | 211 | __be64 port_adr_events; |
212 | } __attribute__ ((packed)); | 212 | } __packed; |
213 | 213 | ||
214 | #define IB_PMA_CONG_HW_CONTROL_TIMER 0x00 | 214 | #define IB_PMA_CONG_HW_CONTROL_TIMER 0x00 |
215 | #define IB_PMA_CONG_HW_CONTROL_SAMPLE 0x01 | 215 | #define IB_PMA_CONG_HW_CONTROL_SAMPLE 0x01 |