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

Function idpf_dev_close

dpdk/drivers/net/idpf/idpf_ethdev.c:819–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819static int
820idpf_dev_close(struct rte_eth_dev *dev)
821{
822 struct idpf_vport *vport = dev->data->dev_private;
823 struct idpf_adapter_ext *adapter = IDPF_ADAPTER_TO_EXT(vport->adapter);
824
825 idpf_dev_stop(dev);
826
827 idpf_vport_deinit(vport);
828
829 adapter->cur_vports &= ~RTE_BIT32(vport->devarg_id);
830 adapter->cur_vport_nb--;
831 dev->data->dev_private = NULL;
832 adapter->vports[vport->sw_idx] = NULL;
833 rte_free(vport);
834
835 return 0;
836}
837
838static const struct eth_dev_ops idpf_eth_dev_ops = {
839 .dev_configure = idpf_dev_configure,

Callers

nothing calls this directly

Calls 3

idpf_dev_stopFunction · 0.85
idpf_vport_deinitFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected