src/dpdk/drivers/net/nfb/nfb_ethdev.c
static int
nfb_eth_dev_stop(struct rte_eth_dev *dev)
{
	uint16_t i;
	uint16_t nb_rx = dev->data->nb_rx_queues;
	uint16_t nb_tx = dev->data->nb_tx_queues;

	dev->data->dev_started = 0;

	for (i = 0; i < nb_tx; i++)
		nfb_eth_tx_queue_stop(dev, i);

	for (i = 0; i < nb_rx; i++)
		nfb_eth_rx_queue_stop(dev, i);

	return 0;
}
/**
 * DPDK callback to stop the device.
 *
 * Stop device by stopping all configured queues.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 */
DPDK callback to stop the device.
Stop device by stopping all configured queues.

@param dev
Pointer to Ethernet device structure.
DPDK callback to stop the device . Stop device by stopping all configured queues . @param dev Pointer to Ethernet device structure .
static int
nfb_eth_dev_stop(struct rte_eth_dev *dev)
{
	uint16_t i;
	uint16_t nb_rx = dev->data->nb_rx_queues;
	uint16_t nb_tx = dev->data->nb_tx_queues;
	dev->data->dev_started = 0;
	for (i = 0; i < nb_tx; i++)
		nfb_eth_tx_queue_stop(dev, i);
	for (i = 0; i < nb_rx; i++)
		nfb_eth_rx_queue_stop(dev, i);
	return 0;
}
static int nfb_eth_dev_stop ( struct rte_eth_dev * dev ) { uint16_t i ; uint16_t nb_rx = dev -> data -> nb_rx_queues ; uint16_t nb_tx = dev -> data -> nb_tx_queues ; dev -> data -> dev_started = 0 ; for ( i = 0 ; i < nb_tx ; i ++ ) nfb_eth_tx_queue_stop ( dev , i ) ; for ( i = 0 ; i < nb_rx ; i ++ ) nfb_eth_rx_queue_stop ( dev , i ) ; return 0 ; }
DPDK callback to stop the device.
DPDK callback to stop the device .