src/dpdk/drivers/net/hinic/hinic_pmd_ethdev.c
static int hinic_dev_set_link_down(struct rte_eth_dev *dev)
{
	struct hinic_nic_dev *nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
	int ret;

	/* link status follow phy port status, up will close pma */
	ret = hinic_set_port_enable(nic_dev->hwdev, false);
	if (ret)
		PMD_DRV_LOG(ERR, "Set mac link down failed, dev_name: %s, port_id: %d",
			    nic_dev->proc_dev_name, dev->data->port_id);

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

@return
0 on success, negative errno value on failure.
DPDK callback to bring the link DOWN . @param dev Pointer to Ethernet device structure . @return 0 on success negative errno value on failure .
static int hinic_dev_set_link_down(struct rte_eth_dev *dev)
{
	struct hinic_nic_dev *nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
	int ret;
	ret = hinic_set_port_enable(nic_dev->hwdev, false);
	if (ret)
		PMD_DRV_LOG(ERR, "Set mac link down failed, dev_name: %s, port_id: %d",
			    nic_dev->proc_dev_name, dev->data->port_id);
	return ret;
}
static int hinic_dev_set_link_down ( struct rte_eth_dev * dev ) { struct hinic_nic_dev * nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV ( dev ) ; int ret ; ret = hinic_set_port_enable ( nic_dev -> hwdev , false ) ; if ( ret ) PMD_DRV_LOG ( ERR , " " , nic_dev -> proc_dev_name , dev -> data -> port_id ) ; return ret ; }
DPDK callback to bring the link DOWN.
DPDK callback to bring the link DOWN .
/* link status follow phy port status, up will close pma */