.. | .. |
---|
294 | 294 | for (indx = 0; indx < rdev->num_msix; indx++) |
---|
295 | 295 | rdev->msix_entries[indx].vector = ent[indx].vector; |
---|
296 | 296 | |
---|
297 | | - bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, |
---|
298 | | - false); |
---|
| 297 | + rc = bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, |
---|
| 298 | + false); |
---|
| 299 | + if (rc) { |
---|
| 300 | + ibdev_warn(&rdev->ibdev, "Failed to reinit CREQ\n"); |
---|
| 301 | + return; |
---|
| 302 | + } |
---|
299 | 303 | for (indx = BNXT_RE_NQ_IDX ; indx < rdev->num_msix; indx++) { |
---|
300 | 304 | nq = &rdev->nq[indx - 1]; |
---|
301 | 305 | rc = bnxt_qplib_nq_start_irq(nq, indx - 1, |
---|
302 | 306 | msix_ent[indx].vector, false); |
---|
303 | | - if (rc) |
---|
| 307 | + if (rc) { |
---|
304 | 308 | ibdev_warn(&rdev->ibdev, "Failed to reinit NQ index %d\n", |
---|
305 | 309 | indx - 1); |
---|
| 310 | + return; |
---|
| 311 | + } |
---|
306 | 312 | } |
---|
307 | 313 | } |
---|
308 | 314 | |
---|
.. | .. |
---|
1185 | 1191 | if (!ib_device_try_get(&rdev->ibdev)) |
---|
1186 | 1192 | return 0; |
---|
1187 | 1193 | |
---|
1188 | | - if (!sgid_tbl) { |
---|
1189 | | - ibdev_err(&rdev->ibdev, "QPLIB: SGID table not allocated"); |
---|
1190 | | - rc = -EINVAL; |
---|
1191 | | - goto out; |
---|
1192 | | - } |
---|
1193 | | - |
---|
1194 | 1194 | for (index = 0; index < sgid_tbl->active; index++) { |
---|
1195 | 1195 | gid_idx = sgid_tbl->hw_id[index]; |
---|
1196 | 1196 | |
---|
.. | .. |
---|
1208 | 1208 | rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, |
---|
1209 | 1209 | rdev->qplib_res.netdev->dev_addr); |
---|
1210 | 1210 | } |
---|
1211 | | -out: |
---|
| 1211 | + |
---|
1212 | 1212 | ib_device_put(&rdev->ibdev); |
---|
1213 | 1213 | return rc; |
---|
1214 | 1214 | } |
---|