MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rte_eth_dev_stop

Function rte_eth_dev_stop

dpdk/lib/ethdev/rte_ethdev.c:1794–1822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794int
1795rte_eth_dev_stop(uint16_t port_id)
1796{
1797 struct rte_eth_dev *dev;
1798 int ret;
1799
1800 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
1801 dev = &rte_eth_devices[port_id];
1802
1803 if (*dev->dev_ops->dev_stop == NULL)
1804 return -ENOTSUP;
1805
1806 if (dev->data->dev_started == 0) {
1807 RTE_ETHDEV_LOG(INFO,
1808 "Device with port_id=%"PRIu16" already stopped\n",
1809 port_id);
1810 return 0;
1811 }
1812
1813 /* point fast-path functions to dummy ones */
1814 eth_dev_fp_ops_reset(rte_eth_fp_ops + port_id);
1815
1816 ret = (*dev->dev_ops->dev_stop)(dev);
1817 if (ret == 0)
1818 dev->data->dev_started = 0;
1819 rte_ethdev_trace_stop(port_id, ret);
1820
1821 return ret;
1822}
1823
1824int
1825rte_eth_dev_set_link_up(uint16_t port_id)

Callers 15

rte_eth_dev_startFunction · 0.85
rte_eth_dev_resetFunction · 0.85
member_configureFunction · 0.85
bond_ethdev_stopFunction · 0.85
bond_ethdev_cfg_cleanupFunction · 0.85
member_rte_flow_prepareFunction · 0.85
fs_dev_startFunction · 0.85
fs_dev_stopFunction · 0.85
fs_dev_removeFunction · 0.85
hn_remove_delayedFunction · 0.85
hn_vf_stopFunction · 0.85

Calls 1

eth_dev_fp_ops_resetFunction · 0.85

Tested by 15

send_pktsFunction · 0.68
test_bit_packet_forwardFunction · 0.68
ut_teardown_inline_ipsecFunction · 0.68
test_ring_pmd_perfFunction · 0.68
test_pmd_perfFunction · 0.68
test_cleanup_resourcesFunction · 0.68