From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4A5992BA7 for ; Fri, 20 Jan 2017 12:09:38 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 20 Jan 2017 03:09:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,258,1477983600"; d="scan'208";a="924730999" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.38]) ([10.237.220.38]) by orsmga003.jf.intel.com with ESMTP; 20 Jan 2017 03:09:35 -0800 To: Yuanhan Liu , Thomas Monjalon References: <1484899493-11051-1-git-send-email-yuanhan.liu@linux.intel.com> <2005966.sVKUI0LeEs@xps13> <20170120103428.GY10293@yliu-dev.sh.intel.com> Cc: dev@dpdk.org From: Ferruh Yigit Message-ID: <43661e95-36bb-081d-92c9-d857c64c0a22@intel.com> Date: Fri, 20 Jan 2017 11:09:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170120103428.GY10293@yliu-dev.sh.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 11:09:38 -0000 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. >>> >>> Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process model") >> >> You should describe the impact on this bug. > > Honestly, I don't know. I didn't met any issue while testing vhost. > Maybe Ferruh knows what might be wrong, since it's him spotted this > bug? I find this while reading the code, not observed any bug. > >> It will be helpful for those testing the RC1. >> >>> - memset(&rte_eth_devices[port_id], 0, sizeof(*eth_dev->data)); >>> + memset(&rte_eth_dev_data[port_id], 0, sizeof(struct rte_eth_dev_data)); >> >> The title should be contain the scope of the bug. >> I suggest "fix data reset when allocating port". > > Yeah, that's better. Thanks. > > --yliu >