src/dpdk/drivers/net/i40e/i40e_ethdev.c
static int
i40e_dev_reset(struct rte_eth_dev *dev)
{
	int ret;

	/* When a DPDK PMD PF begin to reset PF port, it should notify all
	 * its VF to make them align with it. The detailed notification
	 * mechanism is PMD specific. As to i40e PF, it is rather complex.
	 * To avoid unexpected behavior in VF, currently reset of PF with
	 * SR-IOV activation is not supported. It might be supported later.
	 */
	if (dev->data->sriov.active)
		return -ENOTSUP;

	ret = eth_i40e_dev_uninit(dev);
	if (ret)
		return ret;

	ret = eth_i40e_dev_init(dev, NULL);

	return ret;
}
/*
 * Reset PF device only to re-initialize resources in PMD layer
 */
Reset PF device only to re-initialize resources in PMD layer
Reset PF device only to re - initialize resources in PMD layer
static int
i40e_dev_reset(struct rte_eth_dev *dev)
{
	int ret;
	if (dev->data->sriov.active)
		return -ENOTSUP;
	ret = eth_i40e_dev_uninit(dev);
	if (ret)
		return ret;
	ret = eth_i40e_dev_init(dev, NULL);
	return ret;
}
static int i40e_dev_reset ( struct rte_eth_dev * dev ) { int ret ; if ( dev -> data -> sriov . active ) return - ENOTSUP ; ret = eth_i40e_dev_uninit ( dev ) ; if ( ret ) return ret ; ret = eth_i40e_dev_init ( dev , NULL ) ; return ret ; }
Reset PF device only to re-initialize resources in PMD layer
Reset PF device only to re - initialize resources in PMD layer
/* When a DPDK PMD PF begin to reset PF port, it should notify all
	 * its VF to make them align with it. The detailed notification
	 * mechanism is PMD specific. As to i40e PF, it is rather complex.
	 * To avoid unexpected behavior in VF, currently reset of PF with
	 * SR-IOV activation is not supported. It might be supported later.
	 */