src/dpdk/drivers/net/cxgbe/cxgbe_ethdev.c
int cxgbe_dev_stop(struct rte_eth_dev *eth_dev)
{
	struct port_info *pi = eth_dev->data->dev_private;
	struct adapter *adapter = pi->adapter;

	CXGBE_FUNC_TRACE();

	if (!(adapter->flags & FULL_INIT_DONE))
		return 0;

	cxgbe_down(pi);

	/*
	 *  We clear queues only if both tx and rx path of the port
	 *  have been disabled
	 */
	t4_sge_eth_clear_queues(pi);
	eth_dev->data->scattered_rx = 0;

	return 0;
}
/*
 * Stop device: disable rx and tx functions to allow for reconfiguring.
 */
Stop device: disable rx and tx functions to allow for reconfiguring.
Stop device : disable rx and tx functions to allow for reconfiguring .
int cxgbe_dev_stop(struct rte_eth_dev *eth_dev)
{
	struct port_info *pi = eth_dev->data->dev_private;
	struct adapter *adapter = pi->adapter;
	CXGBE_FUNC_TRACE();
	if (!(adapter->flags & FULL_INIT_DONE))
		return 0;
	cxgbe_down(pi);
	t4_sge_eth_clear_queues(pi);
	eth_dev->data->scattered_rx = 0;
	return 0;
}
int cxgbe_dev_stop ( struct rte_eth_dev * eth_dev ) { struct port_info * pi = eth_dev -> data -> dev_private ; struct adapter * adapter = pi -> adapter ; CXGBE_FUNC_TRACE ( ) ; if ( ! ( adapter -> flags & FULL_INIT_DONE ) ) return 0 ; cxgbe_down ( pi ) ; t4_sge_eth_clear_queues ( pi ) ; eth_dev -> data -> scattered_rx = 0 ; return 0 ; }
Stop device: disable rx and tx functions to allow for reconfiguring.
Stop device : disable rx and tx functions to allow for reconfiguring .
/*
	 *  We clear queues only if both tx and rx path of the port
	 *  have been disabled
	 */