MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_init_locks

Function bnxt_init_locks

dpdk/drivers/net/bnxt/bnxt_ethdev.c:5332–5360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5330}
5331
5332static int
5333bnxt_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 */
5363static int bnxt_alloc_switch_domain(struct bnxt *bp)

Callers 1

bnxt_drv_initFunction · 0.85

Calls 1

pthread_mutex_initFunction · 0.85

Tested by

no test coverage detected