Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-19 Thread Yuanhan Liu
On Thu, Jan 19, 2017 at 06:39:13PM +, Ferruh Yigit wrote: > > struct rte_eth_dev * > > rte_eth_dev_allocate(const char *name) > > { > > @@ -210,13 +223,41 @@ struct rte_eth_dev * > > return NULL; > > } > > > > - eth_dev = &rte_eth_devices[port_id]; > > - eth_dev->data =

Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-19 Thread Ferruh Yigit
On 1/9/2017 7:50 AM, Yuanhan Liu wrote: > Assume we have two virtio ports, 00:03.0 and 00:04.0. The first one is > managed by the kernel driver, while the later one is managed by DPDK. > > Now we start the primary process. 00:03.0 will be skipped by DPDK virtio > PMD driver (since it's being used

Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-11 Thread Yuanhan Liu
On Wed, Jan 11, 2017 at 02:32:03PM +0100, Thomas Monjalon wrote: > 2017-01-10 22:33, Yuanhan Liu: > > On Mon, Jan 09, 2017 at 06:08:04PM +0100, Thomas Monjalon wrote: > > > Hi Yuanhan, > > > > > > Nit: the title should be "v4 1/6" > > > > Oops, my bad. > > > > > Except that, good patch :) > > >

Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-11 Thread Thomas Monjalon
2017-01-10 22:33, Yuanhan Liu: > On Mon, Jan 09, 2017 at 06:08:04PM +0100, Thomas Monjalon wrote: > > Hi Yuanhan, > > > > Nit: the title should be "v4 1/6" > > Oops, my bad. > > > Except that, good patch :) > > > > > Signed-off-by: Yuanhan Liu > > > > Acked-by: Thomas Monjalon > > Thanks fo

Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-10 Thread Yuanhan Liu
On Mon, Jan 09, 2017 at 06:08:04PM +0100, Thomas Monjalon wrote: > Hi Yuanhan, > > Nit: the title should be "v4 1/6" Oops, my bad. > Except that, good patch :) > > > Signed-off-by: Yuanhan Liu > > Acked-by: Thomas Monjalon Thanks for review! Mind if I apply it to the next-virtio tree?

Re: [dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-09 Thread Thomas Monjalon
Hi Yuanhan, Nit: the title should be "v4 1/6" Except that, good patch :) > Signed-off-by: Yuanhan Liu Acked-by: Thomas Monjalon

[dpdk-dev] [PATCH v4] ethdev: fix port data mismatched in multiple process model

2017-01-08 Thread Yuanhan Liu
Assume we have two virtio ports, 00:03.0 and 00:04.0. The first one is managed by the kernel driver, while the later one is managed by DPDK. Now we start the primary process. 00:03.0 will be skipped by DPDK virtio PMD driver (since it's being used by the kernel). 00:04.0 would be successfully init