aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r--drivers/infiniband/core/cm.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 53661f34a326..fe838234cf94 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -241,7 +241,7 @@ struct cm_work {
241 __be32 local_id; /* Established / timewait */ 241 __be32 local_id; /* Established / timewait */
242 __be32 remote_id; 242 __be32 remote_id;
243 struct ib_cm_event cm_event; 243 struct ib_cm_event cm_event;
244 struct ib_sa_path_rec path[0]; 244 struct sa_path_rec path[0];
245}; 245};
246 246
247struct cm_timewait_info { 247struct cm_timewait_info {
@@ -440,7 +440,7 @@ static void cm_init_av_for_response(struct cm_port *port, struct ib_wc *wc,
440 grh, &av->ah_attr); 440 grh, &av->ah_attr);
441} 441}
442 442
443static int cm_init_av_by_path(struct ib_sa_path_rec *path, struct cm_av *av, 443static int cm_init_av_by_path(struct sa_path_rec *path, struct cm_av *av,
444 struct cm_id_private *cm_id_priv) 444 struct cm_id_private *cm_id_priv)
445{ 445{
446 struct cm_device *cm_dev; 446 struct cm_device *cm_dev;
@@ -1172,8 +1172,8 @@ static void cm_format_req(struct cm_req_msg *req_msg,
1172 struct cm_id_private *cm_id_priv, 1172 struct cm_id_private *cm_id_priv,
1173 struct ib_cm_req_param *param) 1173 struct ib_cm_req_param *param)
1174{ 1174{
1175 struct ib_sa_path_rec *pri_path = param->primary_path; 1175 struct sa_path_rec *pri_path = param->primary_path;
1176 struct ib_sa_path_rec *alt_path = param->alternate_path; 1176 struct sa_path_rec *alt_path = param->alternate_path;
1177 1177
1178 cm_format_mad_hdr(&req_msg->hdr, CM_REQ_ATTR_ID, 1178 cm_format_mad_hdr(&req_msg->hdr, CM_REQ_ATTR_ID,
1179 cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_REQ)); 1179 cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_REQ));
@@ -1401,8 +1401,8 @@ static inline int cm_is_active_peer(__be64 local_ca_guid, __be64 remote_ca_guid,
1401} 1401}
1402 1402
1403static void cm_format_paths_from_req(struct cm_req_msg *req_msg, 1403static void cm_format_paths_from_req(struct cm_req_msg *req_msg,
1404 struct ib_sa_path_rec *primary_path, 1404 struct sa_path_rec *primary_path,
1405 struct ib_sa_path_rec *alt_path) 1405 struct sa_path_rec *alt_path)
1406{ 1406{
1407 memset(primary_path, 0, sizeof(*primary_path)); 1407 memset(primary_path, 0, sizeof(*primary_path));
1408 primary_path->dgid = req_msg->primary_local_gid; 1408 primary_path->dgid = req_msg->primary_local_gid;
@@ -2815,7 +2815,7 @@ out:
2815 2815
2816static void cm_format_lap(struct cm_lap_msg *lap_msg, 2816static void cm_format_lap(struct cm_lap_msg *lap_msg,
2817 struct cm_id_private *cm_id_priv, 2817 struct cm_id_private *cm_id_priv,
2818 struct ib_sa_path_rec *alternate_path, 2818 struct sa_path_rec *alternate_path,
2819 const void *private_data, 2819 const void *private_data,
2820 u8 private_data_len) 2820 u8 private_data_len)
2821{ 2821{
@@ -2845,7 +2845,7 @@ static void cm_format_lap(struct cm_lap_msg *lap_msg,
2845} 2845}
2846 2846
2847int ib_send_cm_lap(struct ib_cm_id *cm_id, 2847int ib_send_cm_lap(struct ib_cm_id *cm_id,
2848 struct ib_sa_path_rec *alternate_path, 2848 struct sa_path_rec *alternate_path,
2849 const void *private_data, 2849 const void *private_data,
2850 u8 private_data_len) 2850 u8 private_data_len)
2851{ 2851{
@@ -2899,7 +2899,7 @@ out: spin_unlock_irqrestore(&cm_id_priv->lock, flags);
2899EXPORT_SYMBOL(ib_send_cm_lap); 2899EXPORT_SYMBOL(ib_send_cm_lap);
2900 2900
2901static void cm_format_path_from_lap(struct cm_id_private *cm_id_priv, 2901static void cm_format_path_from_lap(struct cm_id_private *cm_id_priv,
2902 struct ib_sa_path_rec *path, 2902 struct sa_path_rec *path,
2903 struct cm_lap_msg *lap_msg) 2903 struct cm_lap_msg *lap_msg)
2904{ 2904{
2905 memset(path, 0, sizeof *path); 2905 memset(path, 0, sizeof *path);
@@ -3712,7 +3712,7 @@ static void cm_recv_handler(struct ib_mad_agent *mad_agent,
3712 atomic_long_inc(&port->counter_group[CM_RECV]. 3712 atomic_long_inc(&port->counter_group[CM_RECV].
3713 counter[attr_id - CM_ATTR_ID_OFFSET]); 3713 counter[attr_id - CM_ATTR_ID_OFFSET]);
3714 3714
3715 work = kmalloc(sizeof(*work) + sizeof(struct ib_sa_path_rec) * paths, 3715 work = kmalloc(sizeof(*work) + sizeof(struct sa_path_rec) * paths,
3716 GFP_KERNEL); 3716 GFP_KERNEL);
3717 if (!work) { 3717 if (!work) {
3718 ib_free_recv_mad(mad_recv_wc); 3718 ib_free_recv_mad(mad_recv_wc);