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

Function tap_dev_stop

dpdk/drivers/net/tap/rte_eth_tap.c:937–953  ·  view source on GitHub ↗

This function gets called when the current port gets stopped. */

Source from the content-addressed store, hash-verified

935/* This function gets called when the current port gets stopped.
936 */
937static int
938tap_dev_stop(struct rte_eth_dev *dev)
939{
940 struct pmd_internals *pmd = dev->data->dev_private;
941 int i;
942
943 for (i = 0; i < dev->data->nb_tx_queues; i++)
944 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
945 for (i = 0; i < dev->data->nb_rx_queues; i++)
946 dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
947
948 tap_intr_handle_set(dev, 0);
949 if (!pmd->persist)
950 tap_link_set_down(dev);
951
952 return 0;
953}
954
955static int
956tap_dev_configure(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 2

tap_intr_handle_setFunction · 0.85
tap_link_set_downFunction · 0.85

Tested by

no test coverage detected