src/dpdk/drivers/net/nfb/nfb_ethdev.c
static int
nfb_eth_dev_set_link_down(struct rte_eth_dev *dev)
{
	struct pmd_internals *internals = (struct pmd_internals *)
		dev->data->dev_private;

	uint16_t i;
	for (i = 0; i < internals->max_rxmac; ++i)
		nc_rxmac_disable(internals->rxmac[i]);

	for (i = 0; i < internals->max_txmac; ++i)
		nc_txmac_disable(internals->txmac[i]);

	return 0;
}
/**
 * DPDK callback to bring the link DOWN.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 *
 * @return
 *   0 on success, a negative errno value otherwise.
 */
DPDK callback to bring the link DOWN.
@param dev
Pointer to Ethernet device structure.

@return
0 on success, a negative errno value otherwise.
DPDK callback to bring the link DOWN . @param dev Pointer to Ethernet device structure . @return 0 on success a negative errno value otherwise .
static int
nfb_eth_dev_set_link_down(struct rte_eth_dev *dev)
{
	struct pmd_internals *internals = (struct pmd_internals *)
		dev->data->dev_private;
	uint16_t i;
	for (i = 0; i < internals->max_rxmac; ++i)
		nc_rxmac_disable(internals->rxmac[i]);
	for (i = 0; i < internals->max_txmac; ++i)
		nc_txmac_disable(internals->txmac[i]);
	return 0;
}
static int nfb_eth_dev_set_link_down ( struct rte_eth_dev * dev ) { struct pmd_internals * internals = ( struct pmd_internals * ) dev -> data -> dev_private ; uint16_t i ; for ( i = 0 ; i < internals -> max_rxmac ; ++ i ) nc_rxmac_disable ( internals -> rxmac [ i ] ) ; for ( i = 0 ; i < internals -> max_txmac ; ++ i ) nc_txmac_disable ( internals -> txmac [ i ] ) ; return 0 ; }
DPDK callback to bring the link DOWN.
DPDK callback to bring the link DOWN .