Re: [dpdk-dev] [PATCH v4 3/5] net/i40e: add support of reset

2017-06-30 Thread Dai, Wei
> -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

Re: [dpdk-dev] [PATCH v4 3/5] net/i40e: add support of reset

2017-06-30 Thread Wu, Jingjing
> } > > +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,

[dpdk-dev] [PATCH v4 3/5] net/i40e: add support of reset

2017-06-29 Thread Wei Dai
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