Re: [dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset

2017-07-10 Thread Dai, Wei
, Konstantin ; Wu, Jingjing ; Zhang, Helin ; Peng, Yuan Subject: Re: [dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset 07/07/2017 10:25, Thomas Monjalon: > Hi, > > 30/06/2017 12:12, Wei Dai: > > +/* > > + * Reest PF device. > > + */ > > +static int > > +

Re: [dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset

2017-07-07 Thread Thomas Monjalon
07/07/2017 10:25, Thomas Monjalon: > Hi, > > 30/06/2017 12:12, Wei Dai: > > +/* > > + * Reest PF device. > > + */ > > +static int > > +ixgbe_dev_reset(struct rte_eth_dev *dev) > > +{ > > + int ret; > > + > > + /* To avoid unexpected behavior in VF, disable PF reset */ > > + if (d

Re: [dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset

2017-07-07 Thread Thomas Monjalon
Hi, 30/06/2017 12:12, Wei Dai: > +/* > + * Reest PF device. > + */ > +static int > +ixgbe_dev_reset(struct rte_eth_dev *dev) > +{ > + int ret; > + > + /* To avoid unexpected behavior in VF, disable PF reset */ > + if (dev->data->sriov.active) > + return -ENOTSUP; >

[dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset

2017-06-30 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through 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/ixgbe/ixgbe_ethdev.c | 42 +