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

Function roc_nix_dev_fini

dpdk/drivers/common/cnxk/roc_nix.c:513–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513int
514roc_nix_dev_fini(struct roc_nix *roc_nix)
515{
516 struct nix *nix = roc_nix_to_nix_priv(roc_nix);
517 int rc = 0;
518
519 if (nix == NULL)
520 return NIX_ERR_PARAM;
521
522 if (!nix->dev.drv_inited)
523 goto fini;
524
525 nix_tm_conf_fini(roc_nix);
526 nix_unregister_irqs(nix);
527
528 rc = nix_lf_detach(nix);
529 nix->dev.drv_inited = false;
530fini:
531 rc |= dev_fini(&nix->dev, nix->pci_dev);
532 return rc;
533}

Callers 3

cnxk_eth_dev_initFunction · 0.85
cnxk_eth_dev_uninitFunction · 0.85
cnxk_nix_removeFunction · 0.85

Calls 5

roc_nix_to_nix_privFunction · 0.85
nix_tm_conf_finiFunction · 0.85
nix_unregister_irqsFunction · 0.85
nix_lf_detachFunction · 0.85
dev_finiFunction · 0.85

Tested by

no test coverage detected