| 5330 | } |
| 5331 | |
| 5332 | static int |
| 5333 | bnxt_init_locks(struct bnxt *bp) |
| 5334 | { |
| 5335 | int err; |
| 5336 | |
| 5337 | err = pthread_mutex_init(&bp->flow_lock, NULL); |
| 5338 | if (err) { |
| 5339 | PMD_DRV_LOG(ERR, "Unable to initialize flow_lock\n"); |
| 5340 | return err; |
| 5341 | } |
| 5342 | |
| 5343 | err = pthread_mutex_init(&bp->def_cp_lock, NULL); |
| 5344 | if (err) { |
| 5345 | PMD_DRV_LOG(ERR, "Unable to initialize def_cp_lock\n"); |
| 5346 | return err; |
| 5347 | } |
| 5348 | |
| 5349 | err = pthread_mutex_init(&bp->health_check_lock, NULL); |
| 5350 | if (err) { |
| 5351 | PMD_DRV_LOG(ERR, "Unable to initialize health_check_lock\n"); |
| 5352 | return err; |
| 5353 | } |
| 5354 | |
| 5355 | err = pthread_mutex_init(&bp->err_recovery_lock, NULL); |
| 5356 | if (err) |
| 5357 | PMD_DRV_LOG(ERR, "Unable to initialize err_recovery_lock\n"); |
| 5358 | |
| 5359 | return err; |
| 5360 | } |
| 5361 | |
| 5362 | /* This should be called after we have queried trusted VF cap */ |
| 5363 | static int bnxt_alloc_switch_domain(struct bnxt *bp) |
no test coverage detected