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

Function cpfl_dev_stop

dpdk/drivers/net/cpfl/cpfl_ethdev.c:1059–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059static int
1060cpfl_dev_stop(struct rte_eth_dev *dev)
1061{
1062 struct cpfl_vport *cpfl_vport = dev->data->dev_private;
1063 struct idpf_vport *vport = &cpfl_vport->base;
1064
1065 if (dev->data->dev_started == 0)
1066 return 0;
1067
1068 idpf_vc_vport_ena_dis(vport, false);
1069
1070 cpfl_stop_queues(dev);
1071
1072 idpf_vport_irq_unmap_config(vport, dev->data->nb_rx_queues);
1073
1074 idpf_vc_vectors_dealloc(vport);
1075
1076 return 0;
1077}
1078
1079static void
1080cpfl_flow_free(struct cpfl_vport *vport)

Callers 1

cpfl_dev_closeFunction · 0.85

Calls 4

idpf_vc_vport_ena_disFunction · 0.85
cpfl_stop_queuesFunction · 0.85
idpf_vc_vectors_deallocFunction · 0.85

Tested by

no test coverage detected