From: Remy Horton Subject: Re: [PATCH] ethdev: fix wrong memset Date: Tue, 24 Jan 2017 08:29:59 +0000 Message-ID: References: <1484899493-11051-1-git-send-email-yuanhan.liu@linux.intel.com> <6e706e07-455f-de57-4f85-eb4e506528f1@intel.com> <4d897cf9-f1f4-d924-10cd-63e95b12b411@intel.com> <20170122024529.GZ10293@yliu-dev.sh.intel.com> <3451afa6-12fb-dc65-f379-873facc0301c@intel.com> <20170123103417.GB10293@yliu-dev.sh.intel.com> <53a23156-dcb9-b41f-c27c-5bd13d5874f6@intel.com> <20170123112445.GE10293@yliu-dev.sh.intel.com> <90752e37-444b-e2bf-6d4b-1bf2eda38deb@intel.com> <20170123114050.GF10293@yliu-dev.sh.intel.com> <20170123115610.GG10293@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Thomas Monjalon To: Yuanhan Liu , Ferruh Yigit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9BE78108F for ; Tue, 24 Jan 2017 09:30:03 +0100 (CET) In-Reply-To: <20170123115610.GG10293@yliu-dev.sh.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 port id, they should point to same device. Otherwise, > primary process may use eth_dev->data for a device A, while the > secondary process may use it for another device, as you said, it > could be a vdev. > > In such case, there is no way we could continue safely. That said, > the given patch avoids the total reset of eth_dev->data, while it > continues reset the eth_dev->data->name, which is wrong. I did wonder whether 7f95f78a8aea ought to be rolled back rather than the memset being made process-conditional. You going to be fixing the issue in your own patch? >> One question: do Remy or you regularly >> run some multiple process test cases (and with vdev both in primary >> and secondary process)? Not aware of there being any multiproc-related unit tests. ..Remy