> -Original Message-
> From: Wu, Jingjing
> Sent: Friday, June 30, 2017 4:54 PM
> To: Dai, Wei ; tho...@monjalon.net; Lu, Wenzhuo
> ; Ananyev, Konstantin
> ; Zhang, Helin ;
> Peng, Yuan
> Cc: dev@dpdk.org
> Subject: RE: [PATCH v4 3/5] net/i40e: add support of reset
>
> > }
> >
> > +stati
> }
>
> +static int
> +i40e_dev_reset(struct rte_eth_dev *dev)
> +{
> + int ret;
> +
> + ret = eth_i40e_dev_uninit(dev);
> + if (ret)
> + return ret;
> +
> + ret = eth_i40e_dev_init(dev);
> +
> + return ret;
Have you thought about if DPDK is working as host driver,
Reset a NIC by calling dev_uninit() and then dev_init().
Go through the same way in NIC PCI remove without release
of ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/i40e/i40e_ethdev.c| 16
drivers/ne
3 matches
Mail list logo