Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-30 Thread Remy Horton
On 28/01/2017 13:14, Yuanhan Liu wrote: [..] I'll apply the patch from Remy which fixes a case where process creates I would ask you not to apply that. IMO, his patch may have "fixed" a crash he saw, but it doesn't looks like to me it really fixes anything: the driver may reference rte_eth_dat

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-28 Thread Yuanhan Liu
On Wed, Jan 25, 2017 at 12:16:58PM +0100, Thomas Monjalon wrote: > > As I understand, the main problem is that rte_eth_devices[] is local, > > while rte_eth_dev_data points to the shared memory array. > > And rte_eth_dev_allocate() assumes that if rte_eth_devices[x] is free, > > then rte_eth_dev_d

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-25 Thread Thomas Monjalon
t; > ; Horton, Remy > > > > Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset > > > > On Mon, Jan 23, 2017 at 12:44:11PM +, Ananyev, Konstantin wrote: > > > > On Mon, Jan 23, 2017 at 07:40:50PM +0800, Yuanhan Liu wrote: > > > > > On Mo

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-24 Thread Remy Horton
On 23/01/2017 11:56, Yuanhan Liu wrote: [..] http://dpdk.org/ml/archives/dev/2017-January/054422.html Yes, it should fix that issue. Well, few more thoughts: it may fix the crash issue Remy saw, but it looks like more a workaround to me. Basically, if primary and secondary shares a same por

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ferruh Yigit
; Thomas Monjalon >> ; Horton, Remy >> >> Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset >> >> On Mon, Jan 23, 2017 at 12:44:11PM +, Ananyev, Konstantin wrote: >>>> On Mon, Jan 23, 2017 at 07:40:50PM +0800, Yuanhan Liu wrote: >>>>> On Mon

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ananyev, Konstantin
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, January 23, 2017 12:53 PM > To: Ananyev, Konstantin > Cc: Yigit, Ferruh ; dev@dpdk.org; Thomas Monjalon > ; Horton, Remy > > Subject: Re: [dpdk-dev] [PATCH] ethdev:

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 12:44:11PM +, Ananyev, Konstantin wrote: > > On Mon, Jan 23, 2017 at 07:40:50PM +0800, Yuanhan Liu wrote: > > > On Mon, Jan 23, 2017 at 11:32:23AM +, Ferruh Yigit wrote: > > > > On 1/23/2017 11:24 AM, Yuanhan Liu wrote: > > > > > On Mon, Jan 23, 2017 at 11:05:25AM +0

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Yuanhan Liu > Sent: Monday, January 23, 2017 11:56 AM > To: Yigit, Ferruh > Cc: dev@dpdk.org; Thomas Monjalon ; Horton, Remy > > Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memse

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 07:40:50PM +0800, Yuanhan Liu wrote: > On Mon, Jan 23, 2017 at 11:32:23AM +, Ferruh Yigit wrote: > > On 1/23/2017 11:24 AM, Yuanhan Liu wrote: > > > On Mon, Jan 23, 2017 at 11:05:25AM +, Ferruh Yigit wrote: > > lib/librte_ether/rte_ethdev.c | 2 +- > > >

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 11:32:23AM +, Ferruh Yigit wrote: > On 1/23/2017 11:24 AM, Yuanhan Liu wrote: > > On Mon, Jan 23, 2017 at 11:05:25AM +, Ferruh Yigit wrote: > lib/librte_ether/rte_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > >>>

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:24 AM, Yuanhan Liu wrote: > On Mon, Jan 23, 2017 at 11:05:25AM +, Ferruh Yigit wrote: lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 11:05:25AM +, Ferruh Yigit wrote: > >> lib/librte_ether/rte_ethdev.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/lib/librte_ether/rte_ethdev.c > >> b/lib/librte_ether/rte_ethdev.c > >> index 4790faf..61f44e2

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 10:34 AM, Yuanhan Liu wrote: > On Mon, Jan 23, 2017 at 09:41:35AM +, Ferruh Yigit wrote: >> On 1/22/2017 2:45 AM, Yuanhan Liu wrote: >>> On Fri, Jan 20, 2017 at 03:27:43PM +, Ferruh Yigit wrote: On 1/20/2017 11:21 AM, Ferruh Yigit wrote: > On 1/20/2017 8:04 AM, Yuanhan

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 09:41:35AM +, Ferruh Yigit wrote: > On 1/22/2017 2:45 AM, Yuanhan Liu wrote: > > On Fri, Jan 20, 2017 at 03:27:43PM +, Ferruh Yigit wrote: > >> On 1/20/2017 11:21 AM, Ferruh Yigit wrote: > >>> On 1/20/2017 8:04 AM, Yuanhan Liu wrote: > Fix an silly error by auto

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ferruh Yigit
On 1/22/2017 2:45 AM, Yuanhan Liu wrote: > On Fri, Jan 20, 2017 at 03:27:43PM +, Ferruh Yigit wrote: >> On 1/20/2017 11:21 AM, Ferruh Yigit wrote: >>> On 1/20/2017 8:04 AM, Yuanhan Liu wrote: Fix an silly error by auto-complete while managing the merge conflicts. It's the eth_dev_data

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-21 Thread Yuanhan Liu
On Fri, Jan 20, 2017 at 03:27:43PM +, Ferruh Yigit wrote: > On 1/20/2017 11:21 AM, Ferruh Yigit wrote: > > On 1/20/2017 8:04 AM, Yuanhan Liu wrote: > >> Fix an silly error by auto-complete while managing the merge conflicts. > >> It's the eth_dev_data (but not eth_dev) entry should be memset. >

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Thomas Monjalon
2017-01-20 18:34, Yuanhan Liu: > On Fri, Jan 20, 2017 at 11:20:06AM +0100, Thomas Monjalon wrote: > > 2017-01-20 16:04, Yuanhan Liu: > > > Fix an silly error by auto-complete while managing the merge conflicts. > > > It's the eth_dev_data (but not eth_dev) entry should be memset. > > > > > > Fixes

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Ferruh Yigit
On 1/20/2017 11:21 AM, Ferruh Yigit wrote: > On 1/20/2017 8:04 AM, Yuanhan Liu wrote: >> Fix an silly error by auto-complete while managing the merge conflicts. >> It's the eth_dev_data (but not eth_dev) entry should be memset. >> >> Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multipl

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Ferruh Yigit
On 1/20/2017 8:04 AM, Yuanhan Liu wrote: > Fix an silly error by auto-complete while managing the merge conflicts. > It's the eth_dev_data (but not eth_dev) entry should be memset. > > Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process > model") > > Reported-by: Ferruh Yi

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Ferruh Yigit
On 1/20/2017 10:34 AM, Yuanhan Liu wrote: > On Fri, Jan 20, 2017 at 11:20:06AM +0100, Thomas Monjalon wrote: >> 2017-01-20 16:04, Yuanhan Liu: >>> Fix an silly error by auto-complete while managing the merge conflicts. >>> It's the eth_dev_data (but not eth_dev) entry should be memset. >>> >>> Fixe

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Yuanhan Liu
On Fri, Jan 20, 2017 at 11:20:06AM +0100, Thomas Monjalon wrote: > 2017-01-20 16:04, Yuanhan Liu: > > Fix an silly error by auto-complete while managing the merge conflicts. > > It's the eth_dev_data (but not eth_dev) entry should be memset. > > > > Fixes: d948f596fee2 ("ethdev: fix port data mism

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Thomas Monjalon
2017-01-20 16:04, Yuanhan Liu: > Fix an silly error by auto-complete while managing the merge conflicts. > It's the eth_dev_data (but not eth_dev) entry should be memset. > > Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process > model") You should describe the impact on th

[dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-20 Thread Yuanhan Liu
Fix an silly error by auto-complete while managing the merge conflicts. It's the eth_dev_data (but not eth_dev) entry should be memset. Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process model") Reported-by: Ferruh Yigit Signed-off-by: Yuanhan Liu --- lib/librte_ether/