|
@@ -94,7 +94,7 @@ static void ib_mcast_complete ( struct ib_device *ibdev,
|
94
|
94
|
if ( ( rc == 0 ) && ( mad->hdr.status != htons ( IB_MGMT_STATUS_OK ) ))
|
95
|
95
|
rc = -ENOTCONN;
|
96
|
96
|
if ( rc != 0 ) {
|
97
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx join failed: %s\n",
|
|
97
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx join failed: %s\n",
|
98
|
98
|
ibdev->name, qp->qpn, strerror ( rc ) );
|
99
|
99
|
goto out;
|
100
|
100
|
}
|
|
@@ -102,14 +102,14 @@ static void ib_mcast_complete ( struct ib_device *ibdev,
|
102
|
102
|
/* Extract values from MAD */
|
103
|
103
|
joined = ( mad->hdr.method == IB_MGMT_METHOD_GET_RESP );
|
104
|
104
|
qkey = ntohl ( mc_member_record->qkey );
|
105
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx %s " IB_GID_FMT " qkey %lx\n",
|
|
105
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx %s " IB_GID_FMT " qkey %lx\n",
|
106
|
106
|
ibdev->name, qp->qpn, ( joined ? "joined" : "left" ),
|
107
|
107
|
IB_GID_ARGS ( gid ), qkey );
|
108
|
108
|
|
109
|
109
|
/* Set queue key */
|
110
|
110
|
qp->qkey = qkey;
|
111
|
111
|
if ( ( rc = ib_modify_qp ( ibdev, qp ) ) != 0 ) {
|
112
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx could not modify qkey: %s\n",
|
|
112
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx could not modify qkey: %s\n",
|
113
|
113
|
ibdev->name, qp->qpn, strerror ( rc ) );
|
114
|
114
|
goto out;
|
115
|
115
|
}
|
|
@@ -147,7 +147,7 @@ int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
147
|
147
|
union ib_mad mad;
|
148
|
148
|
int rc;
|
149
|
149
|
|
150
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx joining " IB_GID_FMT "\n",
|
|
150
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx joining " IB_GID_FMT "\n",
|
151
|
151
|
ibdev->name, qp->qpn, IB_GID_ARGS ( gid ) );
|
152
|
152
|
|
153
|
153
|
/* Sanity check */
|
|
@@ -160,7 +160,7 @@ int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
160
|
160
|
|
161
|
161
|
/* Attach queue pair to multicast GID */
|
162
|
162
|
if ( ( rc = ib_mcast_attach ( ibdev, qp, gid ) ) != 0 ) {
|
163
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx could not attach: %s\n",
|
|
163
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx could not attach: %s\n",
|
164
|
164
|
ibdev->name, qp->qpn, strerror ( rc ) );
|
165
|
165
|
goto err_mcast_attach;
|
166
|
166
|
}
|
|
@@ -170,7 +170,7 @@ int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
170
|
170
|
membership->madx = ib_create_madx ( ibdev, ibdev->gsi, &mad, NULL,
|
171
|
171
|
&ib_mcast_op );
|
172
|
172
|
if ( ! membership->madx ) {
|
173
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx could not create join "
|
|
173
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx could not create join "
|
174
|
174
|
"transaction\n", ibdev->name, qp->qpn );
|
175
|
175
|
rc = -ENOMEM;
|
176
|
176
|
goto err_create_madx;
|
|
@@ -199,7 +199,7 @@ void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
199
|
199
|
union ib_mad mad;
|
200
|
200
|
int rc;
|
201
|
201
|
|
202
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx leaving " IB_GID_FMT "\n",
|
|
202
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx leaving " IB_GID_FMT "\n",
|
203
|
203
|
ibdev->name, qp->qpn, IB_GID_ARGS ( gid ) );
|
204
|
204
|
|
205
|
205
|
/* Sanity check */
|
|
@@ -217,7 +217,7 @@ void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
217
|
217
|
/* Send a single group leave MAD */
|
218
|
218
|
ib_mcast_mad ( ibdev, &membership->gid, 0, &mad );
|
219
|
219
|
if ( ( rc = ib_mi_send ( ibdev, ibdev->gsi, &mad, NULL ) ) != 0 ) {
|
220
|
|
- DBGC ( ibdev, "IBDEV %s QPN %lx could not send leave request: "
|
|
220
|
+ DBGC ( ibdev, "IBDEV %s QPN %#lx could not send leave request: "
|
221
|
221
|
"%s\n", ibdev->name, qp->qpn, strerror ( rc ) );
|
222
|
222
|
}
|
223
|
223
|
}
|