| 817 | } |
| 818 | |
| 819 | static int |
| 820 | idpf_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 | |
| 838 | static const struct eth_dev_ops idpf_eth_dev_ops = { |
| 839 | .dev_configure = idpf_dev_configure, |
nothing calls this directly
no test coverage detected